Commit 19b2e5f
NFSv4: Fix an incorrect parameter when calling nfs4_call_sync()
The Smatch static checker noted that in _nfs4_proc_lookupp(), the flag
RPC_TASK_TIMEOUT is being passed as an argument to nfs4_init_sequence(),
which is clearly incorrect.
Since LOOKUPP is an idempotent operation, nfs4_init_sequence() should
not ask the server to cache the result. The RPC_TASK_TIMEOUT flag needs
to be passed down to the RPC layer.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Reported-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Fixes: 76998eb ("NFSv4: Observe the NFS_MOUNT_SOFTREVAL flag in _nfs4_proc_lookupp")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>1 parent ad72043 commit 19b2e5f
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4715 | 4715 | | |
4716 | 4716 | | |
4717 | 4717 | | |
4718 | | - | |
| 4718 | + | |
4719 | 4719 | | |
| 4720 | + | |
| 4721 | + | |
4720 | 4722 | | |
4721 | 4723 | | |
4722 | 4724 | | |
4723 | 4725 | | |
| 4726 | + | |
4724 | 4727 | | |
4725 | 4728 | | |
4726 | | - | |
4727 | | - | |
| 4729 | + | |
| 4730 | + | |
4728 | 4731 | | |
4729 | 4732 | | |
4730 | 4733 | | |
| |||
0 commit comments