From: Alexander Aring Date: Wed, 23 Jun 2021 11:14:53 -0400 Subject: [Cluster-devel] [RFC dlm/next 14/15] fs: dlm: flush listen con In-Reply-To: <20210623151454.176649-1-aahringo@redhat.com> References: <20210623151454.176649-1-aahringo@redhat.com> Message-ID: <20210623151454.176649-15-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Instead of flush the whole io_workqueue we can just flush the listen con work to be sure that no new connection will be accepted anymore. Signed-off-by: Alexander Aring --- fs/dlm/lowcomms.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index e858453b4eb7..bb088ebc1614 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -1784,9 +1784,7 @@ void dlm_lowcomms_shutdown(void) * socket activity. */ dlm_allow_conn = 0; - - flush_workqueue(io_workqueue); - + flush_work(&listen_con.rwork); dlm_close_sock(&listen_con.sock); idx = srcu_read_lock(&connections_srcu); -- 2.26.3