]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit0461e0db941f8f49dcfd0576c4449f2e5beda2f6
treea6a75397a874a1d8f41c7896745b02c40eac8126
parent7ae0451e2e6c29ff9fc17754b1129d9491177634
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