diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2023-11-17 14:25:13 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2024-01-04 18:47:56 +0300 |
commit | 8a6291bf3b0eae1bf26621e6419a91682f2d6227 (patch) | |
tree | 59ba7682028c67f251269f84b05866659896597f /fs/nfs/nfstrace.h | |
parent | f6e70c59edee4203e9541e790e8c416a9250f190 (diff) | |
download | linux-8a6291bf3b0eae1bf26621e6419a91682f2d6227.tar.xz |
pNFS: Fix the pnfs block driver's calculation of layoutget size
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: 954998b60caa ("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>
Diffstat (limited to 'fs/nfs/nfstrace.h')
0 files changed, 0 insertions, 0 deletions