mbox series

[v2,0/2] Fix O_DIRECT error handling

Message ID 20191001202000.13248-1-trond.myklebust@hammerspace.com (mailing list archive)
Headers show
Series Fix O_DIRECT error handling | expand

Message

Trond Myklebust Oct. 1, 2019, 8:19 p.m. UTC
These patches fix issues with how O_DIRECT handles read and write
errors, and also how it handles eof.

v2:
- Change to handle all short reads and writes in the same manner.

Note that we can still end up breaking generic/465 by using the
nconnect=<n> (where n > 1) mount option. The reason is that the
test assumes the writes land in increasing order on the server,
despite having being launched in parallel.

Trond Myklebust (2):
  NFS: Fix O_DIRECT accounting of number of bytes read/written
  NFS: Remove redundant mirror tracking in O_DIRECT

 fs/nfs/direct.c | 111 ++++++++++++++++++------------------------------
 1 file changed, 41 insertions(+), 70 deletions(-)