From: Alexander Aring Date: Tue, 3 Nov 2020 01:04:19 +0000 (-0500) Subject: fs: dlm: flush othercon at close X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=53a5edaa05c1073e47668f167ec9788383c780e1;p=linux.git fs: dlm: flush othercon at close This patch ensures we also flush the othercon writequeue when a lowcomms close occurs. Signed-off-by: Alexander Aring Signed-off-by: David Teigland --- diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 620eca3979d54..c0c688aac223f 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -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);