dlm: increment ls_count for dlm_scand
authorAlexander Aring <aahringo@redhat.com>
Mon, 15 Apr 2024 18:39:35 +0000 (14:39 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 16 Apr 2024 18:42:45 +0000 (13:42 -0500)
commit700b04808fad2eac24abf050f234f059199fa3fe
tree9d5ed81a5afe16b6ca63d65551f677c3bfe11e28
parent92d59adfaf710f34ae7788fa54f0731a7640833b
dlm: increment ls_count for dlm_scand

Increment the ls_count value while dlm_scand is processing a
lockspace so that release_lockspace()/remove_lockspace() will
wait for dlm_scand to finish.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lockspace.c