]> 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)
commit6ab2da08066e56598c8aebe5f93d9d20af62b021
treec6d80e481f775da2ed75725b0f0a25afd3537b05
parente2ad68e370eb1df5ec4f19070c8f732f5cb26447
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