Skip to content

async COPY fixes for NFSD

[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. v3 Latest8 patches 9 repliesIn review
  2. v1 RFC9 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8NFSD: Add a tracepoint to record canceled async COPY operationsfs/nfsd/nfs4proc.c fs/nfsd/trace.h+11 -10 replies
2/8NFSD: Fix nfsd4_shutdown_copy()fs/nfsd/nfs4proc.c+3 -02 replies
3/8NFSD: Free async copy information in nfsd4_cb_offload_release()fs/nfsd/nfs4proc.c fs/nfsd/xdr4.h+13 -70 replies
4/8NFSD: Handle an NFS4ERR_DELAY response to CB_OFFLOADfs/nfsd/nfs4proc.c fs/nfsd/xdr4.h+9 -02 replies
5/8NFSD: Block DESTROY_CLIENTID only when there are ongoing async COPY operationsfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/state.h+32 -10 replies
6/8NFSD: Add a laundromat reaper for async copy statefs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/state.h +1 more+37 -10 replies
7/8NFSD: Add nfsd4_copy time-to-livefs/nfsd/nfs4proc.c fs/nfsd/state.h fs/nfsd/xdr4.h+21 -20 replies
8/8NFSD: Send CB_OFFLOAD on graceful shutdownfs/nfsd/nfs4proc.c+5 -14 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJeff Layton
SeriesR-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v3 thread

Cover letter [PATCH v3 0/8] async COPY fixes for NFSD

From: Chuck Lever <[email protected]>

Extend the life of async COPY state IDs so that clients get actionable OFFLOAD_STATUS results after COPY operations complete. This lifetime extension comports with RFC 7862, although does not bring NFSD fully into compliance.

There are a number of other small fixes to improve observability, behavior during temporary resource shortages, and behavior during client shutdown.

Async COPY remains disabled in NFSD until the Linux client has grown support for OFFLOAD_STATUS. Patches for that are available in the "fix-async-copy" branch of:

https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git

Changes since previous versions:
- Loads of testing, improvements, and re-organization

Chuck Lever (8):
NFSD: Add a tracepoint to record canceled async COPY operations
NFSD: Fix nfsd4_shutdown_copy()
NFSD: Free async copy information in nfsd4_cb_offload_release()
NFSD: Handle an NFS4ERR_DELAY response to CB_OFFLOAD
NFSD: Block DESTROY_CLIENTID only when there are ongoing async COPY
operations
NFSD: Add a laundromat reaper for async copy state
NFSD: Add nfsd4_copy time-to-live
NFSD: Send CB_OFFLOAD on graceful shutdown

 fs/nfsd/nfs4proc.c  | 101 ++++++++++++++++++++++++++++++++++++++++----
 fs/nfsd/nfs4state.c |   3 +-
 fs/nfsd/state.h     |  17 ++++++++
 fs/nfsd/trace.h     |  11 ++++-
 fs/nfsd/xdr4.h      |   6 +++
 5 files changed, 128 insertions(+), 10 deletions(-)
Signature · 1 line
2.47.0