]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD check stateids against copy stateids
authorOlga Kornievskaia <olga.kornievskaia@gmail.com>
Fri, 6 Sep 2019 19:17:21 +0000 (15:17 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 9 Dec 2019 16:42:14 +0000 (11:42 -0500)
commit276c97c0b3bdfe1d057faad1db46e493a2d1f0b4
tree8e689174c651f72f84ddd932f2ee5892d14c8622
parente54147f931fc99d0c5fd5e64f422728dc177db02
NFSD check stateids against copy stateids

Incoming stateid (used by a READ) could be a saved copy stateid.
Using the provided stateid, look it up in the list of copy_notify
stateids. If found, use the parent's stateid and parent's clid
to look up the parent's stid to do the appropriate checks.

Update the copy notify timestamp (cpntf_time) with current time
this making it 'active' so that laundromat thread will not delete
copy notify state.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
fs/nfsd/nfs4state.c