Skip to content

Commit

Permalink
fs: dlm: flush othercon at close
Browse files Browse the repository at this point in the history
This patch ensures we also flush the othercon writequeue when a lowcomms
close occurs.

Signed-off-by: Alexander Aring <[email protected]>
Signed-off-by: David Teigland <[email protected]>
  • Loading branch information
Alexander Aring authored and teigland committed Nov 10, 2020
1 parent 692f51c commit 53a5eda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,8 @@ int dlm_lowcomms_close(int nodeid)
set_bit(CF_CLOSE, &con->flags);
close_connection(con, true, true, true);
clean_one_writequeue(con);
if (con->othercon)
clean_one_writequeue(con->othercon);
}

spin_lock(&dlm_node_addrs_spin);
Expand Down

0 comments on commit 53a5eda

Please sign in to comment.