Skip to content

Commit

Permalink
drbd: Fix drbdsetup wait-connect, wait-sync etc... commands
Browse files Browse the repository at this point in the history
This was introduces when moving the code over from the 8.3 codebase
with commit 328e0f1

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
  • Loading branch information
Philipp Reisner committed Dec 6, 2012
1 parent 13c76ab commit ef86b77
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions drivers/block/drbd/drbd_nl.c
Original file line number Diff line number Diff line change
@@ -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))
mdev->rs_last_bcast = jiffies;
else
return;
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);

0 comments on commit ef86b77

Please sign in to comment.