Skip to content

Basic NFSv4 migration support

Chuck Lever linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21SUNRPC: Modify synopsis of rpc_client_register()net/sunrpc/clnt.c+7 -60 replies
2/21SUNRPC: Add a helper to switch the transport of an rpc_clntinclude/linux/sunrpc/clnt.h net/sunrpc/clnt.c+104 -70 replies
3/21NFS: Add nfs4_update_serverfs/nfs/client.c fs/nfs/internal.h fs/nfs/nfs4client.c+113 -10 replies
4/21NFS: Add functions to swap transports during migration recoveryfs/nfs/nfs4_fs.h fs/nfs/nfs4namespace.c+103 -00 replies
5/21NFS: Introduce a vector of migration recovery opsfs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c+14 -00 replies
6/21NFS: Export _nfs_display_fhandle()fs/nfs/inode.c fs/nfs/nfs4client.c+3 -10 replies
7/21NFS: Add method to retrieve fs_locations during migration recoveryfs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c +1 more+196 -110 replies
8/21NFS: Add a super_block backpointer to the nfs_server structfs/nfs/super.c include/linux/nfs_fs_sb.h+2 -00 replies
9/21NFS: Add basic migration support to state manager threadfs/nfs/nfs4_fs.h fs/nfs/nfs4client.c fs/nfs/nfs4state.c +1 more+168 -30 replies
10/21NFS: Re-use exit code in nfs4_async_handle_error()fs/nfs/nfs4proc.c+3 -60 replies
11/21NFS: Rename "stateid_invalid" labelfs/nfs/nfs4proc.c+3 -30 replies
12/21NFS: Add migration recovery callouts in nfs4proc.cfs/nfs/nfs4proc.c+20 -20 replies
13/21NFS: Handle NFS4ERR_MOVED during delegation recallfs/nfs/nfs4proc.c+3 -00 replies
14/21NFS: Add method to detect whether an FSID is still on the serverfs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c fs/nfs/nfs4xdr.c +2 more+209 -20 replies
15/21NFS: Support NFS4ERR_LEASE_MOVED recovery in state managerfs/nfs/nfs4_fs.h fs/nfs/nfs4state.c+74 -10 replies
16/21NFS: Implement support for NFS4ERR_LEASE_MOVEDfs/nfs/nfs4proc.c+9 -00 replies
17/21NFS: Migration support for RELEASE_LOCKOWNERfs/nfs/nfs4proc.c+16 -00 replies
18/21NFS: Handle NFS4ERR_LEASE_MOVED during async RENEWfs/nfs/nfs4proc.c+7 -10 replies
19/21NFS: Handle SEQ4_STATUS_LEASE_MOVEDfs/nfs/nfs4state.c+3 -20 replies
20/21NFS: Set EXCHGID4_FLAG_SUPP_MOVED_MIGRfs/nfs/Kconfig fs/nfs/nfs4proc.c+18 -10 replies
21/21NFS: Fix possible endless state recovery waitfs/nfs/nfs4state.c+6 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/21] Basic NFSv4 migration support

Here are the remaining patches required to support basic forms of NFSv4 migration. These apply on and have been tested with 3.12-rc5.

NFSv4.1 migration support remains provisional.

There are still some nits to work out about what happens to an nfs_client once all its nfs_server's are migrated away.

---

Chuck Lever (20):
SUNRPC: Modify synopsis of rpc_client_register()
NFS: Add nfs4_update_server
NFS: Add functions to swap transports during migration recovery
NFS: Introduce a vector of migration recovery ops
NFS: Export _nfs_display_fhandle()
NFS: Add method to retrieve fs_locations during migration recovery
NFS: Add a super_block backpointer to the nfs_server struct
NFS: Add basic migration support to state manager thread
NFS: Re-use exit code in nfs4_async_handle_error()
NFS: Rename "stateid_invalid" label
NFS: Add migration recovery callouts in nfs4proc.c
NFS: Handle NFS4ERR_MOVED during delegation recall
NFS: Add method to detect whether an FSID is still on the server
NFS: Support NFS4ERR_LEASE_MOVED recovery in state manager
NFS: Implement support for NFS4ERR_LEASE_MOVED
NFS: Migration support for RELEASE_LOCKOWNER
NFS: Handle NFS4ERR_LEASE_MOVED during async RENEW
NFS: Handle SEQ4_STATUS_LEASE_MOVED
NFS: Set EXCHGID4_FLAG_SUPP_MOVED_MIGR
NFS: Fix possible endless state recovery wait

Trond Myklebust (1):
SUNRPC: Add a helper to switch the transport of an rpc_clnt

 fs/nfs/Kconfig              |   11 +
 fs/nfs/client.c             |    3 
 fs/nfs/inode.c              |    2 
 fs/nfs/internal.h           |    3 
 fs/nfs/nfs4_fs.h            |   16 ++
 fs/nfs/nfs4client.c         |  111 +++++++++++++
 fs/nfs/nfs4namespace.c      |  101 ++++++++++++
 fs/nfs/nfs4proc.c           |  372 +++++++++++++++++++++++++++++++++++++++++--
 fs/nfs/nfs4state.c          |  249 ++++++++++++++++++++++++++++-
 fs/nfs/nfs4xdr.c            |  113 ++++++++++++-
 fs/nfs/super.c              |    1 
 include/linux/nfs4.h        |    1 
 include/linux/nfs_fs_sb.h   |    8 +
 include/linux/nfs_xdr.h     |   17 ++
 include/linux/sunrpc/clnt.h |    4 
 net/sunrpc/clnt.c           |  120 ++++++++++++--
 16 files changed, 1081 insertions(+), 51 deletions(-)
Signature · 1 line
Chuck Lever