Skip to content

Commit

Permalink
NFS: Move cl_state_owners and related fields to the nfs_server struct
Browse files Browse the repository at this point in the history
NFSv4 migration needs to reassociate state owners from the source to
the destination nfs_server data structures.  To make that easier, move
the cl_state_owners field to the nfs_server struct.  cl_openowner_id
and cl_lockowner_id accompany this move, as they are used in
conjunction with cl_state_owners.

The cl_lock field in the parent nfs_client continues to protect all
three of these fields.

Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
chucklever authored and Trond Myklebust committed Jan 6, 2011
1 parent fca5238 commit 24d292b
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 76 deletions.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct nfs_unique_id {
struct nfs4_state_owner {
struct nfs_unique_id so_owner_id;
struct nfs_server *so_server;
struct rb_node so_client_node;
struct rb_node so_server_node;

struct rpc_cred *so_cred; /* Associated cred */

Expand Down
Loading

0 comments on commit 24d292b

Please sign in to comment.