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(-) -- 2.21.0