This patch ensures we also flush the othercon writequeue when a lowcomms
close occurs.

Signed-off-by: Alexander Aring <[email protected]>
---
 fs/dlm/lowcomms.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 620eca3979d5..c0c688aac223 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);
-- 
2.26.2

Reply via email to