Skip to content

FlexFiles: too many bytes w/ direct+aio retried read

Weston Andros Adamson linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pnfs: set NFS_IOHDR_REDO in pnfs_read_resend_pnfsfs/nfs/pnfs.c fs/nfs/pnfs.h+9 -70 replies
2/2nfs: add debug to directio "good_bytes" countingfs/nfs/direct.c+5 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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)