]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS/flexfiles: Ensure we have enough buffer for layoutreturn
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 9 Dec 2016 23:07:51 +0000 (18:07 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 10 Dec 2016 01:26:59 +0000 (20:26 -0500)
commit8c5802d08eea0cd66e281a35bc708e6dbbdd26c0
tree46646c3839734c3de03db48f311972e7f1ed6af5
parent08643de1fb884c382daae6e415d6fc5f53079c26
pNFS/flexfiles: Ensure we have enough buffer for layoutreturn

The flexfiles client can piggyback both layout errors and layoutstats
as part of the layoutreturn. Both these payloads can get large, with
20 layout error entries taking up about 1.2K, and 4 layoutstats entries
taking up another 1K.
This patch allows a maximum payload of 4k by allocating a full page.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/flexfilelayout/flexfilelayout.h