]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: cap request size to fit a kmalloced page array
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Aug 2014 16:09:17 +0000 (11:09 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:01 +0000 (12:47 -0700)
commitc42ab7c9f43b0a357b5cf734e9674d4a5f6fc82e
treef80b3d375c399f31091ebe58d5fb7883dcbc8098
parent1bf206e8fba9c073225a0811a130f6fee541a5bc
nfs: cap request size to fit a kmalloced page array

pNFS servers may return arbitrarily large layouts.  Trim back the I/O size
to one that we can at least allocate the page array for.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c