FlexFiles: too many bytes w/ direct+aio retried read
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | pnfs: set NFS_IOHDR_REDO in pnfs_read_resend_pnfsfs/ fs/ | +9 | 0 replies | |
| 2/2 | nfs: add debug to directio "good_bytes" countingfs/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2 vers 2] FlexFiles: too many bytes w/ direct+aio retried read
vers 2 fixes unused var found by buildbot.
Patch 1 fixes an issue seen when using libaio with directio where if a read is retried (ie due to recalled layout) we return too many bytes. Specifically, we returned a multiple of the read size.
To reproduce, run fio with ioengine=libaio and direct=1, then revoke the active layout. This should hit pretty easily.
Patch 2 should help notice similar issues elsewhere.
Weston Andros Adamson (2):
pnfs: set NFS_IOHDR_REDO in pnfs_read_resend_pnfs
nfs: add debug to directio "good_bytes" counting
fs/nfs/direct.c | 7 +++++-- fs/nfs/pnfs.c | 14 ++++++++------ fs/nfs/pnfs.h | 2 +- 3 files changed, 14 insertions(+), 9 deletions(-)
Signature · 1 line
2.6.4 (Apple Git-63)