[Cluster-devel] [RFC dlm/next 14/15] fs: dlm: flush listen con
Alexander Aring
aahringo at redhat.com
Wed Jun 23 15:14:53 UTC 2021
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 <aahringo at redhat.com>
---
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
More information about the Cluster-devel
mailing list