aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2018-05-18 13:34:45 -0400
committerIlya Dryomov <idryomov@gmail.com>2018-06-04 14:45:57 -0400
commit0d09c57d0846537332d3649eef7e01960ffdc574 (patch)
treedf9f1333574b788c46924c29c4501132d409a297 /net
parenta57d9064e4ee4e9882b922d0627be3d426004c69 (diff)
libceph: no need to call flush_workqueue() before destruction
destroy_workqueue() drains the workqueue before proceeding with destruction. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/ceph/osd_client.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index a7e090d2c957..bcedeea80cd5 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -5081,7 +5081,6 @@ out:
5081 5081
5082void ceph_osdc_stop(struct ceph_osd_client *osdc) 5082void ceph_osdc_stop(struct ceph_osd_client *osdc)
5083{ 5083{
5084 flush_workqueue(osdc->notify_wq);
5085 destroy_workqueue(osdc->notify_wq); 5084 destroy_workqueue(osdc->notify_wq);
5086 cancel_delayed_work_sync(&osdc->timeout_work); 5085 cancel_delayed_work_sync(&osdc->timeout_work);
5087 cancel_delayed_work_sync(&osdc->osds_timeout_work); 5086 cancel_delayed_work_sync(&osdc->osds_timeout_work);