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

Commit ef86b779 authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Fix drbdsetup wait-connect, wait-sync etc... commands



This was introduces when moving the code over from the 8.3 codebase
with commit 328e0f12

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 13c76aba
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -3297,11 +3297,12 @@ void drbd_bcast_event(struct drbd_conf *mdev, const struct sib_info *sib)
	unsigned seq;
	int err = -ENOMEM;

	if (sib->sib_reason == SIB_SYNC_PROGRESS &&
	    time_after(jiffies, mdev->rs_last_bcast + HZ))
	if (sib->sib_reason == SIB_SYNC_PROGRESS) {
		if (time_after(jiffies, mdev->rs_last_bcast + HZ))
			mdev->rs_last_bcast = jiffies;
		else
			return;
	}

	seq = atomic_inc_return(&drbd_genl_seq);
	msg = genlmsg_new(NLMSG_GOODSIZE, GFP_NOIO);