Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d09c57d authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

libceph: no need to call flush_workqueue() before destruction



destroy_workqueue() drains the workqueue before proceeding with
destruction.

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent a57d9064
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -5081,7 +5081,6 @@ int ceph_osdc_init(struct ceph_osd_client *osdc, struct ceph_client *client)


void ceph_osdc_stop(struct ceph_osd_client *osdc)
void ceph_osdc_stop(struct ceph_osd_client *osdc)
{
{
	flush_workqueue(osdc->notify_wq);
	destroy_workqueue(osdc->notify_wq);
	destroy_workqueue(osdc->notify_wq);
	cancel_delayed_work_sync(&osdc->timeout_work);
	cancel_delayed_work_sync(&osdc->timeout_work);
	cancel_delayed_work_sync(&osdc->osds_timeout_work);
	cancel_delayed_work_sync(&osdc->osds_timeout_work);