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

Commit 8f488156 authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Allow attach while IO is suspended

parent cfa03415
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -954,7 +954,7 @@ static int drbd_nl_disk_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp

	drbd_suspend_io(mdev);
	/* also wait for the last barrier ack. */
	wait_event(mdev->misc_wait, !atomic_read(&mdev->ap_pending_cnt));
	wait_event(mdev->misc_wait, !atomic_read(&mdev->ap_pending_cnt) || mdev->state.susp);
	/* and for any other previously queued work */
	drbd_flush_workqueue(mdev);