]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dlm: remove lock dependency warning
authorAlexander Aring <aahringo@redhat.com>
Thu, 24 Sep 2020 14:31:22 +0000 (10:31 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 29 Sep 2020 19:00:32 +0000 (14:00 -0500)
commit37eefa1030e8283ff4ffcf089e67f543ae8e57f3
treea6a75397a874a1d8f41c7896745b02c40eac8126
parenteea498a7b467e949c2febb5813c95195e8b53dcf
fs: dlm: remove lock dependency warning

During my experiments to make dlm robust against tcpkill application I
was able to run sometimes in a circular lock dependency warning between
clusters_root.subsys.su_mutex and con->sock_mutex. We don't need to
held the sock_mutex when getting the mark value which held the
clusters_root.subsys.su_mutex. This patch moves the specific handling
just before the sock_mutex will be held.

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