]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Ensure O_DIRECT reports an error if the bytes read/written is 0
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 12 Aug 2019 22:04:36 +0000 (18:04 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Aug 2019 12:56:04 +0000 (08:56 -0400)
commit0e8bc2380345e17fa8fe58bbfee75cddb7e323f2
treefb5c36bec2b2b8fdceeac4bc0e1fb74455b7e971
parentee140d89c79ea5a2c7d5f5c9d226d79c3fefd96c
NFS: Ensure O_DIRECT reports an error if the bytes read/written is 0

If the attempt to resend the I/O results in no bytes being read/written,
we must ensure that we report the error.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Fixes: e5874e10c598 ("nfs: mirroring support for direct io")
Cc: stable@vger.kernel.org # v3.20+
fs/nfs/direct.c
fs/nfs/pagelist.c