nfsd: Remove duplicate checking of nfsd_net in nfs4_laundromat()
authorKinglong Mee <kinglongmee@gmail.com>
Mon, 13 Jul 2015 09:33:55 +0000 (17:33 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Aug 2015 20:05:51 +0000 (16:05 -0400)
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index 780fd6e1478dd44fb602847b5c8af86fe188ef38..433355d467946e020f7617f3955479cfb125a288 100644 (file)
@@ -4340,8 +4340,6 @@ nfs4_laundromat(struct nfsd_net *nn)
        spin_lock(&state_lock);
        list_for_each_safe(pos, next, &nn->del_recall_lru) {
                dp = list_entry (pos, struct nfs4_delegation, dl_recall_lru);
-               if (net_generic(dp->dl_stid.sc_client->net, nfsd_net_id) != nn)
-                       continue;
                if (time_after((unsigned long)dp->dl_time, (unsigned long)cutoff)) {
                        t = dp->dl_time - cutoff;
                        new_timeo = min(new_timeo, t);