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 3b84700..a795491 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: