浏览代码

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>
Ilya Dryomov 7 年之前
父节点
当前提交
0d09c57d08
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      net/ceph/osd_client.c

+ 0 - 1
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);