Commit 1f214e9
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 <[email protected]>
Reported-by: Harshit Mogalapalli <[email protected]>
Fixes: 76998eb ("NFSv4: Observe the NFS_MOUNT_SOFTREVAL flag in _nfs4_proc_lookupp")
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>1 parent 7a7a345 commit 1f214e9
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