Skip to content

NFSD EOS deferral

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3SUNRPC add deferral processing callbacksinclude/linux/sunrpc/svc.h net/sunrpc/svc_xprt.c+25 -54 replies
2/3NFSD save, restore, and release deferred result pagesfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c include/linux/nfsd/xdr4.h+90 -00 replies
3/3NFSD deferral processingfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c include/linux/nfsd/xdr4.h+62 -272 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] NFSD EOS deferral

Here's a patch set for review - it compiles and seems to work, but I haven't done stress testing, nor testing of all of the combinations of deferral cases.

A deferral occurs when NFSD needs information from an rpc cache, and an upcall is required. Instead of NFSD waiting for the cache to be filled by the upcall, the RPC request is inserted back into the receive stream for processing at a later time.

Exactly once semantics require that NFSD compound RPC deferral processing restart at the operation that caused the deferral, instead of reprocessing the full compound RPC from the start possibly repeating operation processing. These patches add three callbacks, a data pointer, and page pointer storage to the sunrpc svc deferral architecture that NFSD uses to accomplish this goal.

Deferrals that do not define the callbacks act as before. Care has been taken to ensure that combinations of deferrals - those from the NFSv4 server with the callbacks defined, and those from the RPC layer without the callbacks defined work together correctly.

Thoughts, comments and suggestions are really appreciated...

-->Andy Adamson <[email protected]>