]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: don't set lock stateid's sc_type to CLOSED
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 17 Jan 2018 21:25:59 +0000 (16:25 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 5 Feb 2018 22:13:17 +0000 (17:13 -0500)
commite8cf2da36637047c9b3b1a5cace586782b9134fd
treee8e0b8703113765b54f9f4f300c37bef809091f8
parenta6c81f68c7ff215cd6d6db947dc9f53e437dcf04
nfsd4: don't set lock stateid's sc_type to CLOSED

There's no point I can see to

stp->st_stid.sc_type = NFS4_CLOSED_STID;

given release_lock_stateid immediately sets sc_type to 0.

That set of sc_type to 0 should be enough to prevent it being used where
we don't want it to be; NFS4_CLOSED_STID should only be needed for
actual open stateid's that are actually closed.

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