]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pnfs: set NFS_IOHDR_REDO in pnfs_read_resend_pnfs
authorWeston Andros Adamson <dros@primarydata.com>
Fri, 1 Apr 2016 15:42:28 +0000 (11:42 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 9 May 2016 13:05:40 +0000 (09:05 -0400)
commit1b1bc66bb4ebd737fb750b0e1afc753098f4a1b2
tree4c2c2175fadbc45eb3c02ba89e55bec893768686
parent44549e8f5eea4e0a41b487b63e616cb089922b99
pnfs: set NFS_IOHDR_REDO in pnfs_read_resend_pnfs

Like other resend paths, mark the (old) hdr as NFS_IOHDR_REDO. This
ensures the hdr completion function will not count the (old) hdr
as good bytes.

Also, vector the error back through the hdr->task.tk_status like other
retry calls.

This fixes a bug with the FlexFiles layout where libaio was reporting more
bytes read than requested.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs.c
fs/nfs/pnfs.h