mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
NFSv4.1: Cleanup
It is now completely safe to call nfs41_sequence_free_slot with a NULL slot. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
a13ce7c629
commit
905e7dafbe
1 changed files with 2 additions and 4 deletions
|
@ -336,8 +336,7 @@ static void filelayout_read_call_done(struct rpc_task *task, void *data)
|
|||
|
||||
if (test_bit(NFS_IOHDR_REDO, &rdata->header->flags) &&
|
||||
task->tk_status == 0) {
|
||||
if (rdata->res.seq_res.sr_slot != NULL)
|
||||
nfs41_sequence_done(task, &rdata->res.seq_res);
|
||||
nfs41_sequence_done(task, &rdata->res.seq_res);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -446,8 +445,7 @@ static void filelayout_write_call_done(struct rpc_task *task, void *data)
|
|||
|
||||
if (test_bit(NFS_IOHDR_REDO, &wdata->header->flags) &&
|
||||
task->tk_status == 0) {
|
||||
if (wdata->res.seq_res.sr_slot != NULL)
|
||||
nfs41_sequence_done(task, &wdata->res.seq_res);
|
||||
nfs41_sequence_done(task, &wdata->res.seq_res);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue