NFSv3: Delete duplicate judgement in nfs3_async_handle_jukebox
authorYe Bin <yebin10@huawei.com>
Wed, 18 Aug 2021 02:02:52 +0000 (10:02 +0800)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 27 Aug 2021 20:36:21 +0000 (16:36 -0400)
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>
fs/nfs/nfs3proc.c

index 2299446b3b89bb7ef1c9274abbfbc3c9634ae4ef..f7524310ddf4b0b04a1bd2244b274e2fb4d6d19c 100644 (file)
@@ -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);