Skip to content

Commit

Permalink
NFSv4.1: Fix the slotid initialisation in nfs_async_rename()
Browse files Browse the repository at this point in the history
This fixes an Oopsable condition that was introduced by commit
d3d4152 (nfs: make sillyrename an async
operation)

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 21, 2010
1 parent f7732d6 commit d688e11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2550,6 +2550,7 @@ static void nfs4_proc_unlink_setup(struct rpc_message *msg, struct inode *dir)

args->bitmask = server->cache_consistency_bitmask;
res->server = server;
res->seq_res.sr_slotid = NFS4_MAX_SLOT_TABLE;
msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_REMOVE];
}

Expand All @@ -2575,6 +2576,7 @@ static void nfs4_proc_rename_setup(struct rpc_message *msg, struct inode *dir)
msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_RENAME];
arg->bitmask = server->attr_bitmask;
res->server = server;
res->seq_res.sr_slotid = NFS4_MAX_SLOT_TABLE;
}

static int nfs4_proc_rename_done(struct rpc_task *task, struct inode *old_dir,
Expand Down

0 comments on commit d688e11

Please sign in to comment.