]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
fs: dlm: cancel work sync othercon
authorAlexander Aring <aahringo@redhat.com>
Fri, 21 May 2021 19:08:38 +0000 (15:08 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:30:12 +0000 (09:30 +0200)
commit922dd24ab0dbb1d54d02f1c176c6b20294c8158d
treed3cfbfa262df2a94dc9d7d24a8519742b1bc2f7a
parenta4c8d923192467cd4129bcc607bd081ff357f8f1
fs: dlm: cancel work sync othercon

BugLink: https://bugs.launchpad.net/bugs/1938340
[ Upstream commit c6aa00e3d20c2767ba3f57b64eb862572b9744b3 ]

These rx tx flags arguments are for signaling close_connection() from
which worker they are called. Obviously the receive worker cannot cancel
itself and vice versa for swork. For the othercon the receive worker
should only be used, however to avoid deadlocks we should pass the same
flags as the original close_connection() was called.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/dlm/lowcomms.c