linux-stable/fs/nfs/blocklayout
Trond Myklebust 75aa038d9f pNFS: Fix the pnfs block driver's calculation of layoutget size
[ Upstream commit 8a6291bf3b ]

Instead of relying on the value of the 'bytes_left' field, we should
calculate the layout size based on the offset of the request that is
being written out.

Reported-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Fixes: 954998b60c ("NFS: Fix error handling for O_DIRECT write scheduling")
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:35:18 -08:00
..
blocklayout.c pNFS: Fix the pnfs block driver's calculation of layoutget size 2024-01-25 15:35:18 -08:00
blocklayout.h pnfs/blocklayout: pnfs_block_dev_map uses bytes, not sectors 2018-01-25 16:42:35 -05:00
dev.c nfs/blocklayout: Use the passed in gfp flags 2023-08-24 13:24:15 -04:00
extent_tree.c mm: remove the pgprot argument to __vmalloc 2020-06-02 10:59:11 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
rpc_pipefs.c block: remove genhd.h 2022-02-02 07:49:59 -07:00