nfsd4: remove some useless code
authorfanchaoting <tingchaofan@gmail.com>
Thu, 11 Apr 2013 13:24:13 +0000 (21:24 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 16 Apr 2013 14:59:31 +0000 (10:59 -0400)
The "list_empty(&oo->oo_owner.so_stateids)" is aways true, so remove it.

Signed-off-by: fanchaoting <fanchaoting@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index 3b84700d1bd7f7083a0a58a3e51bd50f69e37be6..a7954913b33258686011c0d26f9c5fe7f1bd1cfe 100644 (file)
@@ -3919,8 +3919,7 @@ nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
                         * In the 4.0 case we need to keep the owners around a
                         * little while to handle CLOSE replay.
                         */
-                       if (list_empty(&oo->oo_owner.so_stateids))
-                               move_to_close_lru(oo, SVC_NET(rqstp));
+                       move_to_close_lru(oo, SVC_NET(rqstp));
                }
        }
 out: