nfsd4: remove some useless code

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>
This commit is contained in:
fanchaoting 2013-04-11 21:24:13 +08:00 коммит произвёл J. Bruce Fields
Родитель 3bd64a5ba1
Коммит 53584f6652
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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: