Skip to content

Fix O_DIRECT writeback error paths

[email protected] linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesIn review
  2. v11 patch 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5NFS: Fix error handling for O_DIRECT write schedulingfs/nfs/direct.c+46 -166 replies
2/5NFS: Fix O_DIRECT locking issuesfs/nfs/direct.c+4 -40 replies
3/5NFS: More O_DIRECT accounting fixes for error pathsfs/nfs/direct.c+31 -160 replies
4/5NFS: Use the correct commit info in nfs_join_page_group()fs/nfs/direct.c fs/nfs/write.c include/linux/nfs_page.h+20 -150 replies
5/5NFS: More fixes for nfs_direct_write_reschedule_io()fs/nfs/direct.c+11 -60 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchBenjamin Coddington
1/5R-b T-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] Fix O_DIRECT writeback error paths

From: Trond Myklebust <[email protected]>

In recent tests of the O_DIRECT code, a number of bugs were discovered in the error codepaths, some of which were shown to result in data corruption. The tests involved using pNFS flexfiles with 3-way mirroring, and then shutting down one of the data servers. When the data was later re-read from the server, it was shown to not match the original data.

---
v1 - NFS: Fix error handling for O_DIRECT write scheduling v2 - Fixes for incorrect commit info
Fixes for O_DIRECT accounting
O_DIRECT locking issues
Fix write scheduling issues

Trond Myklebust (5):
NFS: Fix error handling for O_DIRECT write scheduling
NFS: Fix O_DIRECT locking issues
NFS: More O_DIRECT accounting fixes for error paths
NFS: Use the correct commit info in nfs_join_page_group()
NFS: More fixes for nfs_direct_write_reschedule_io()

 fs/nfs/direct.c          | 134 +++++++++++++++++++++++++++------------
 fs/nfs/write.c           |  23 +++----
 include/linux/nfs_page.h |   4 +-
 3 files changed, 108 insertions(+), 53 deletions(-)
Signature · 1 line
2.41.0