mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 04:20:23 +09:00
fs: dlm: cancel work sync othercon
[ Upstream commit c6aa00e3d2 ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
747b654e40
commit
7425fe57d9
@@ -599,7 +599,7 @@ static void close_connection(struct connection *con, bool and_other,
|
||||
}
|
||||
if (con->othercon && and_other) {
|
||||
/* Will only re-enter once. */
|
||||
close_connection(con->othercon, false, true, true);
|
||||
close_connection(con->othercon, false, tx, rx);
|
||||
}
|
||||
|
||||
con->rx_leftover = 0;
|
||||
|
||||
Reference in New Issue
Block a user