libceph: no need to call flush_workqueue() before destruction
authorIlya Dryomov <idryomov@gmail.com>
Fri, 18 May 2018 17:34:45 +0000 (19:34 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 4 Jun 2018 18:45:57 +0000 (20:45 +0200)
destroy_workqueue() drains the workqueue before proceeding with
destruction.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osd_client.c

index a7e090d2c9571e2b8e85c24793511c0046997b83..bcedeea80cd58b083384c2f88467141629d196fa 100644 (file)
@@ -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);