NFS support for async intra COPY
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest13 patches 0 repliesNew
- v813 patches 1 replySuperseded
- v712 patches 0 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 12 patches | 2 replies | Superseded | |
| v5 | 12 of 23 patches | 3 replies | Superseded | |
| v4 posting 2/2 | 8 patches | 0 replies | Superseded | |
| v4 posting 1/2 | 12 patches | 11 replies | Superseded | |
| v3 | 42 patches | 38 replies | Superseded | |
| v1 RFC | 0 of 17 patches | 11 replies | Superseded |
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | fs: Don't copy beyond the end of the filefs/ | +3 | 0 replies | |
| 2/13 | NFS CB_OFFLOAD xdrfs/ fs/ fs/ | +98 | 0 replies | |
| 3/13 | NFS OFFLOAD_CANCEL xdrfs/ fs/ fs/ +3 more | +84 | 0 replies | |
| 4/13 | NFS COPY xdr handle async replyfs/ include/ | +13 | 0 replies | |
| 5/13 | NFS add support for asynchronous COPYfs/ fs/ fs/ +4 more | +104 | 0 replies | |
| 6/13 | NFS handle COPY reply CB_OFFLOAD call racefs/ fs/ fs/ +1 more | +50 | 0 replies | |
| 7/13 | NFS export nfs4_async_handle_errorfs/ fs/ | +4 | 0 replies | |
| 8/13 | NFS send OFFLOAD_CANCEL when COPY killedfs/ | +90 | 0 replies | |
| 9/13 | NFS handle COPY ERR_OFFLOAD_NO_REQSfs/ | +5 | 0 replies | |
| 10/13 | NFS add a simple sync nfs4_proc_commit after async COPYfs/ fs/ fs/ | +66 | 0 replies | |
| 11/13 | NFS recover from destination server reboot for copiesfs/ fs/ fs/ +2 more | +40 | 0 replies | |
| 12/13 | NFS OFFLOAD_STATUS xdrfs/ fs/ fs/ +2 more | +95 | 0 replies | |
| 13/13 | NFS OFFLOAD_STATUS opfs/ fs/ | +47 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.
Cover letter [PATCH v9 00/13] NFS support for async intra COPY
Change the client side to always request an asynchronous copy.
If server replies to the COPY with the copy stateid, client will go wait on the CB_OFFLOAD. To fend off the race between CB_OFFLOAD and COPY reply, we check the list of pending callbacks before going to wait. Client adds the copy to the global list of copy stateids for the callback to look thru and signal the waiting copy.
When the client receives reply from the CB_OFFLOAD with some bytes and committed how is UNSTABLE, then COMMIT is sent to the server. The results are propagated to the VFS and application. Assuming that application will deal with a partial result and continue from the new offset if needed.
If server errs with ERR_OFFLOAD_NOREQS the copy will be re-sent as a synchronous COPY. If application cancels an in-flight COPY, OFFLOAD_CANCEL is sent to the server (sending it as an async RPC in the context of the nfsid_workqueue).
v9.
--reworked patches so that OFFLOAD_STATUS are the last 2 patches.
Anna Schumaker (1):
fs: Don't copy beyond the end of the file
Olga Kornievskaia (12):
NFS CB_OFFLOAD xdr
NFS OFFLOAD_CANCEL xdr
NFS COPY xdr handle async reply
NFS add support for asynchronous COPY
NFS handle COPY reply CB_OFFLOAD call race
NFS export nfs4_async_handle_error
NFS send OFFLOAD_CANCEL when COPY killed
NFS handle COPY ERR_OFFLOAD_NO_REQS
NFS add a simple sync nfs4_proc_commit after async COPY NFS recover from destination server reboot for copies NFS OFFLOAD_STATUS xdr
NFS OFFLOAD_STATUS op
fs/nfs/callback.h | 12 +++ fs/nfs/callback_proc.c | 54 ++++++++++ fs/nfs/callback_xdr.c | 80 ++++++++++++++- fs/nfs/client.c | 1 + fs/nfs/nfs42.h | 5 +- fs/nfs/nfs42proc.c | 252 ++++++++++++++++++++++++++++++++++++++++++++-- fs/nfs/nfs42xdr.c | 189 +++++++++++++++++++++++++++++++--- fs/nfs/nfs4_fs.h | 8 +- fs/nfs/nfs4client.c | 15 +++ fs/nfs/nfs4file.c | 9 +- fs/nfs/nfs4proc.c | 38 ++++++- fs/nfs/nfs4state.c | 15 +++ fs/nfs/nfs4xdr.c | 2 + fs/read_write.c | 3 + include/linux/nfs4.h | 2 + include/linux/nfs_fs.h | 11 ++ include/linux/nfs_fs_sb.h | 4 + include/linux/nfs_xdr.h | 14 +++ 18 files changed, 689 insertions(+), 25 deletions(-)
Signature · 1 line
1.8.3.1