]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Keep a reference on lock states while checking
authorBenjamin Coddington <bcodding@redhat.com>
Sat, 19 Nov 2016 02:11:39 +0000 (21:11 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 21 Nov 2016 16:58:39 +0000 (11:58 -0500)
commitdbe11db411235fc27bd31153bde7564eb4dcf1d7
treec6d80e481f775da2ed75725b0f0a25afd3537b05
parent7173482dab320d9e454e92d944ab5a22ae5c2b92
NFSv4.1: Keep a reference on lock states while checking

While walking the list of lock_states, keep a reference on each
nfs4_lock_state to be checked, otherwise the lock state could be removed
while the check performs TEST_STATEID and possible FREE_STATEID.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c