Skip to content

NFSD: delay unmount source's export after inter-server copy completed.

Dai Ngo linux-nfs 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 3 repliesIn review
  2. v62 patches 1 replySuperseded
  3. v52 patches 12 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v42 patches6 repliesSuperseded
v32 patches5 repliesSuperseded
v22 patches17 repliesSuperseded
v12 patches0 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2NFSD: delay unmount source's export after inter-server copy completed.fs/nfsd/netns.h fs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c +3 more+229 -40 replies
2/2NFSv4.2: remove restriction of copy size for inter-server copy.fs/nfs/nfs4file.c+4 -63 replies

Reviews trailers per patch

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

Read the v7 thread

Cover letter [PATCH v7 0/2] NFSD: delay unmount source's export after inter-server copy completed.

Hi Olga, Bruce,

Currently the source's export is mounted and unmounted on every inter-server copy operation. This causes unnecessary overhead for each copy.

This patch series is an enhancement to allow the export to remain mounted for a configurable period (default to 15 minutes). If the export is not being used for the configured time it will be unmounted by a delayed task. If it's used again then its expiration time is extended for another period.

Since mount and unmount are no longer done on every copy request, the restriction of copy size (14*rsize), in __nfs4_copy_file_range, is removed.

-Dai

v2: fix compiler warning of missing prototype.
v3: remove the used of semaphore.
eliminated all RPC calls for subsequence mount by allowing
all exports from one server to share one vfsmount.
make inter-server threshold a module configuration parameter.
v4: convert nsui_refcnt to use refcount_t.
add note about 20secs wait in nfsd4_interssc_connect. removed (14*rsize) restriction from __nfs4_copy_file_range.
v5: make use of the laundomat thread to service delayed unmount list.
destroy delayed unmount list when nfsd is shutdown. make delayed unmount list per nfsd_net to support container.
v6: move content of nfsd4_ssc_umount in to nfsd_net.
move code that manages the delayed unmount list
from nfsd/nfs4proc.c to nfsd/nfs4state.c
cleanup left over from previous versions.
rebase to 5.13-rc2
v7: simplify nfsd4_interssc_connect by moving changes into
functions.