]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: give up callbacks on revoked delegations
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 31 Jul 2020 20:20:05 +0000 (16:20 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 25 Sep 2020 22:01:26 +0000 (18:01 -0400)
commita63ae5f9b9b9f68b5585fea7b69c124d2f603df9
tree2190e06814bb7faf9afbe250fc3050d30924cc63
parentcd5ce55d9f6ea3a6a64c429196ccffefb206d57f
nfsd: give up callbacks on revoked delegations

The delegation is no longer returnable, so I don't think there's much
point retrying the recall.

(I think it's worth asking why we even need separate CLOSED_DELEG and
REVOKED_DELEG states.  But treating them the same would currently cause
nfsd4_free_stateid to call list_del_init(&dp->dl_recall_lru) on a
delegation that the laundromat had unhashed but not revoked, incorrectly
removing it from the laundromat's reaplist or a client's dl_recall_lru.)

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