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)
commitd75a6a0e3933acbba44e4ad8d8f3c4d4f76b6e03
treec6d80e481f775da2ed75725b0f0a25afd3537b05
parentd41cbfc9a64d11835a5b5b90caa7d6f3a88eb1df
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