Skip to content

NFS support for "inter" server-to-server COPY

Olga Kornievskaia linux-nfs 3 versions – NAK

Status from this message: NAK, and please just keep my NAK on the patch so that I don't have

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 1 replyNAK
  2. v21 patch 2 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Patches in v4

#Subject and filesSizeRepliesApplied
1/11VFS permit cross device vfs_copy_file_rangeDocumentation/filesystems/vfs.txt fs/read_write.c+12 -71 reply
2/11NFS test for intra vs inter COPYfs/nfs/nfs42.h+10 -00 replies
3/11NFS recover from destination server reboot for copiesfs/nfs/nfs42proc.c fs/nfs/nfs4_fs.h fs/nfs/nfs4file.c +2 more+41 -50 replies
4/11NFS NFSD defining nl4_servers structure needed by bothinclude/linux/nfs4.h+24 -00 replies
5/11NFS add COPY_NOTIFY operationfs/nfs/nfs42.h fs/nfs/nfs42proc.c fs/nfs/nfs42xdr.c +8 more+313 -20 replies
6/11NFS add ca_source_server<> to COPYfs/nfs/nfs42.h fs/nfs/nfs42proc.c fs/nfs/nfs42xdr.c +2 more+36 -130 replies
7/11NFS also send OFFLOAD_CANCEL to source serverfs/nfs/nfs42proc.c+4 -20 replies
8/11NFS inter ssc openfs/nfs/nfs4_fs.h fs/nfs/nfs4file.c fs/nfs/nfs4proc.c+115 -30 replies
9/11NFS skip recovery of copy open on dest serverfs/nfs/nfs4_fs.h fs/nfs/nfs4file.c fs/nfs/nfs4state.c+16 -10 replies
10/11NFS for "inter" copy treat ESTALE as ENOTSUPPfs/nfs/nfs42proc.c+5 -00 replies
11/11NFS COPY handle ERR_OFFLOAD_DENIEDfs/nfs/nfs42proc.c+2 -10 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 00/11] NFS support for "inter" server-to-server COPY

This patch series builds on top of async COPY series.

In case, of the "inter" SSC copy files reside on different servers and thus under different superblocks and require that VFS removes the restriction that src and dst files must be on the same superblock.

NFS's copy_file_range() determines if the copy is "intra" or "inter" and for "inter" it sends the COPY_NOTIFY to the source server. Then, it would send of an asynchronous COPY to the destination server.

A couple of patches are added for the destination server acting as the client when talking to the source server. It's now acting as a client and needs to do a special "open" and "close". Since destination server doesn't do an open on the wire, we "fake" create the needed data structures and that's done in the new function nfs42_ssc_open(). To clean up this open but not trigger the CLOSE on the wire, we have a new function nfs42_ssc_close() that accomplishes that. This is patch "NFS inter ssc open"

Handling reboot of the destination server when client is waiting on the CB_OFFLOAD happens when SEQUENCE discovers that destination server rebooted. The open state initially is marked to be NFS_CLNT_DST_SSC_COPY_STATE during the COPY. Then during the recovery if state is marked as such, then look thru the list of copies for the server and see if any are associated with this recovering open, if so mark the copy rebooted and wake up the waiting copy. Upon wake up the waiting copy, will restart the copy from scratch. This is patch "NFS skip recovery of copy open on dest server".

If the server returned ESTALE or ERR_OFFLOAD_DENIED fallback on the traditional copy.

Olga Kornievskaia (11):
VFS permit cross device vfs_copy_file_range NFS test for intra vs inter COPY
NFS recover from destination server reboot for copies NFS NFSD defining nl4_servers structure needed by both NFS add COPY_NOTIFY operation
NFS add ca_source_server<> to COPY
NFS also send OFFLOAD_CANCEL to source server NFS inter ssc open
NFS skip recovery of copy open on dest server NFS for "inter" copy treat ESTALE as ENOTSUPP NFS COPY handle ERR_OFFLOAD_DENIED

 Documentation/filesystems/vfs.txt |   6 ++
 fs/nfs/nfs42.h                    |  14 ++-
 fs/nfs/nfs42proc.c                | 141 +++++++++++++++++++++++++---
 fs/nfs/nfs42xdr.c                 | 193 +++++++++++++++++++++++++++++++++++++-
 fs/nfs/nfs4_fs.h                  |  13 +++
 fs/nfs/nfs4file.c                 | 135 +++++++++++++++++++++++++-
 fs/nfs/nfs4proc.c                 |   6 +-
 fs/nfs/nfs4state.c                |  31 +++++-
 fs/nfs/nfs4xdr.c                  |   1 +
 fs/read_write.c                   |  13 ++-
 include/linux/nfs4.h              |  25 +++++
 include/linux/nfs_fs.h            |   2 +
 include/linux/nfs_fs_sb.h         |   1 +
 include/linux/nfs_xdr.h           |  17 ++++
 14 files changed, 571 insertions(+), 27 deletions(-)
Signature · 1 line
1.8.3.1