Skip to content

recoalesce when ld read/write fails

Peng Tao linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 8 repliesIn review
  2. v15 patches 16 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3pNFS: recoalesce when ld write pagelist failsfs/nfs/pnfs.c fs/nfs/pnfs.h fs/nfs/write.c+32 -154 replies
2/3pNFS: recoalesce when ld read pagelist failsfs/nfs/pnfs.c fs/nfs/pnfs.h fs/nfs/read.c+20 -150 replies
3/3pNFS: introduce pnfs private workqueuefs/nfs/blocklayout/blocklayout.c fs/nfs/objlayout/objio_osd.c fs/nfs/objlayout/objlayout.c +2 more+77 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] recoalesce when ld read/write fails

Hi,

I have moved the error handling inside mds_ops->rpc_release to reuse code as suggested by Boaz.

I think we still need to issue the IO even for write because
we don't know if current writeback is the last one. So if we re-dirty the pages and this is the last flush (flush at file close), then we don't have a later flusher to writeback the re-dirtied pages. Boaz, please help see if current approach is OK. Thanks.

The two cleanup patches (pipe upcall and set_lo_fail) are seperated out of this patchset so they can be merged more easily.

Thanks,
Tao

Peng Tao (3):
pNFS: recoalesce when ld write pagelist fails
pNFS: recoalesce when ld read pagelist fails
pNFS: introduce pnfs private workqueue

 fs/nfs/blocklayout/blocklayout.c |   17 +++++--
 fs/nfs/objlayout/objio_osd.c     |    8 +++
 fs/nfs/objlayout/objlayout.c     |    4 +-
 fs/nfs/pnfs.c                    |   92 +++++++++++++++++++++++++++-----------
 fs/nfs/pnfs.h                    |    8 +++-
 fs/nfs/read.c                    |   13 +++++-
 fs/nfs/write.c                   |   25 ++++++++++-
 7 files changed, 129 insertions(+), 38 deletions(-)