fs: dlm: cleanup lock order
authorAlexander Aring <aahringo@redhat.com>
Tue, 1 Aug 2023 18:09:44 +0000 (14:09 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 10 Aug 2023 15:33:03 +0000 (10:33 -0500)
commit643f5cfa610f475c7465e4158b2b1fdd170fac10
tree3aa725377f31e997449e54f7a420c5daa32a3f56
parentc84c47333abbbfd83212fcfe2867be4a47e82056
fs: dlm: cleanup lock order

This patch cleanups the lock order to hold at first the close_lock and
then held the nodes_srcu read lock. Probably it will never be a problem
as nodes_srcu is only a read lock preventing the node pointer getting
freed.

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