diff options
author | Ye Bin <yebin10@huawei.com> | 2021-08-18 04:02:52 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-08-27 22:36:21 +0200 |
commit | 79d534f8cbf9714e2ba735f5b6c97678d266b2de (patch) | |
tree | 8a16314e29a340a5213826aa5f128a5e82c7d373 /fs/nfs | |
parent | SUNRPC: Tweak TCP socket shutdown in the RPC client (diff) | |
download | linux-79d534f8cbf9714e2ba735f5b6c97678d266b2de.tar.xz linux-79d534f8cbf9714e2ba735f5b6c97678d266b2de.zip |
NFSv3: Delete duplicate judgement in nfs3_async_handle_jukebox
As eb96d5c97b08 ("SUNRPC handle EKEYEXPIRED in call_refreshresult")
commit handle EKEYEXPIRED in call_refreshresult, so there is only handle
when "task->tk_status" is equal "-EJUKEBOX" in nfs3_async_handle_jukebox.
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs3proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 2299446b3b89..f7524310ddf4 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c @@ -49,8 +49,7 @@ nfs3_async_handle_jukebox(struct rpc_task *task, struct inode *inode) { if (task->tk_status != -EJUKEBOX) return 0; - if (task->tk_status == -EJUKEBOX) - nfs_inc_stats(inode, NFSIOS_DELAY); + nfs_inc_stats(inode, NFSIOS_DELAY); task->tk_status = 0; rpc_restart_call(task); rpc_delay(task, NFS_JUKEBOX_RETRY_TIME); |