]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit2e11f8296d22134c4fca7eb022eea2b09facd307
treef80b3d375c399f31091ebe58d5fb7883dcbc8098
parentbc7d4b8fd0917b4b84a8911185d34a97c696f219
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