Skip to content

Commit 7425fe5

Browse files
alexaringgregkh
authored andcommitted
fs: dlm: cancel work sync othercon
[ Upstream commit c6aa00e ] 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>
1 parent 747b654 commit 7425fe5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/dlm/lowcomms.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ static void close_connection(struct connection *con, bool and_other,
599599
}
600600
if (con->othercon && and_other) {
601601
/* Will only re-enter once. */
602-
close_connection(con->othercon, false, true, true);
602+
close_connection(con->othercon, false, tx, rx);
603603
}
604604

605605
con->rx_leftover = 0;

0 commit comments

Comments
 (0)