From: Ilya Dryomov Date: Fri, 18 May 2018 17:34:45 +0000 (+0200) Subject: libceph: no need to call flush_workqueue() before destruction X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0d09c57d0846537332d3649eef7e01960ffdc574;p=linux.git libceph: no need to call flush_workqueue() before destruction destroy_workqueue() drains the workqueue before proceeding with destruction. Signed-off-by: Ilya Dryomov --- diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index a7e090d2c9571..bcedeea80cd58 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -5081,7 +5081,6 @@ out: void ceph_osdc_stop(struct ceph_osd_client *osdc) { - flush_workqueue(osdc->notify_wq); destroy_workqueue(osdc->notify_wq); cancel_delayed_work_sync(&osdc->timeout_work); cancel_delayed_work_sync(&osdc->osds_timeout_work);