Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346296
b: refs/heads/master
c: ef86b77
h: refs/heads/master
v: v3
  • Loading branch information
Philipp Reisner committed Dec 6, 2012
1 parent 7f48035 commit 29dc2b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13c76aba7846647f86d479293ae0a0adc1ca840a
refs/heads/master: ef86b77957a97315d43ff72c9b83361ba1a07963
11 changes: 6 additions & 5 deletions trunk/drivers/block/drbd/drbd_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29dc2b9

Please sign in to comment.