Skip to content

RFC nfsd sync export_op (was 'wsync export option')

Ben Myers linux-nfs linux-xfs 1 version In review

Get series with b4
b4 am 20100210003220.6021.74943.stgit@case

Versions newest first

  1. v1 RFC Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2commit_metadata export operation and nfsd_sync2fs/nfsd/nfs3proc.c fs/nfsd/nfs4proc.c fs/nfsd/nfs4recover.c +5 more+87 -483 replies
2/2xfs_export_operations.commit_metadatafs/xfs/linux-2.6/xfs_export.c+64 -05 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] nfsd sync export_op (was 'wsync export option')

This is another try based upon Christoph and Trond's suggestions in the 'wsync export option' thread. I've added the export operation and combined nfsd_sync_dir and write_inode_now usage into nfsd_sync2 which passes the buck onto XFS. It's been very lightly tested. It's just a little bit faster than the previous try:

# time tar -xvf /mnt2/quilt-0.47.tar > /dev/null

plain jane:
0m13.177s 0m13.301s 0m13.528s

previous try:
0m8.361s 0m8.400s 0m8.301s

w/ xfs commit_metadata op:
0m7.426s 0m7.340s 0m7.198s

Thanks!
-Ben

---

Ben Myers (2):
commit_metadata export operation and nfsd_sync2 xfs_export_operations.commit_metadata

 fs/nfsd/nfs3proc.c            |    2 -
 fs/nfsd/nfs4proc.c            |    2 -
 fs/nfsd/nfs4recover.c         |    2 -
 fs/nfsd/nfs4state.c           |    2 -
 fs/nfsd/nfsproc.c             |    4 +
 fs/nfsd/vfs.c                 |  113 ++++++++++++++++++++++++++---------------
 fs/nfsd/vfs.h                 |    4 +
 fs/xfs/linux-2.6/xfs_export.c |   64 +++++++++++++++++++++++
 include/linux/exportfs.h      |    6 ++
 9 files changed, 151 insertions(+), 48 deletions(-)