diff options
| author | 2025-10-20 08:52:24 -0400 | |
|---|---|---|
| committer | 2025-10-23 16:24:39 +0200 | |
| commit | 58e4050d6b814043cfd6bbb12180147cab4598ca (patch) | |
| tree | fea13072087741f76ff9e66f66f84d0af7ab0dd0 /scripts/git:/ssh:/git@git.zx2c4.com | |
| parent | NFSD: Minor cleanup in layoutcommit processing (diff) | |
| download | laptop-kernel-58e4050d6b814043cfd6bbb12180147cab4598ca.tar.xz laptop-kernel-58e4050d6b814043cfd6bbb12180147cab4598ca.zip | |
NFSD: Implement large extent array support in pNFS
[ Upstream commit f963cf2b91a30b5614c514f3ad53ca124cb65280 ]
When pNFS client in the block or scsi layout mode sends layoutcommit
to MDS, a variable length array of modified extents is supplied within
the request. This patch allows the server to accept such extent arrays
if they do not fit within single memory page.
The issue can be reproduced when writing to a 1GB file using FIO with
O_DIRECT, 4K block and large I/O depth without preallocation of the
file. In this case, the server returns NFSERR_BADXDR to the client.
Co-developed-by: Konstantin Evtushenko <koevtushenko@yandex.com>
Signed-off-by: Konstantin Evtushenko <koevtushenko@yandex.com>
Signed-off-by: Sergey Bashirov <sergeybashirov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Stable-dep-of: d68886bae76a ("NFSD: Fix last write offset handling in layoutcommit")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
