Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292805
b: refs/heads/master
c: d096293
h: refs/heads/master
i:
  292803: 66ec8a4
v: v3
  • Loading branch information
NeilBrown committed Mar 19, 2012
1 parent 750c72e commit 74491c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 61a0d80ce4ab5b4fb9ecb38f1fb19654778b71ed
refs/heads/master: d0962936bff659d20522555b517582a2715fd23f
3 changes: 2 additions & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -1805,13 +1805,13 @@ static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev)
| BB_LEN(internal_bb));
*bbp++ = cpu_to_le64(store_bb);
}
bb->changed = 0;
if (read_seqretry(&bb->lock, seq))
goto retry;

bb->sector = (rdev->sb_start +
(int)le32_to_cpu(sb->bblog_offset));
bb->size = le16_to_cpu(sb->bblog_size);
bb->changed = 0;
}
}

Expand Down Expand Up @@ -2366,6 +2366,7 @@ static void md_update_sb(struct mddev * mddev, int force_change)
clear_bit(MD_CHANGE_PENDING, &mddev->flags);
rdev_for_each(rdev, mddev) {
if (rdev->badblocks.changed) {
rdev->badblocks.changed = 0;
md_ack_all_badblocks(&rdev->badblocks);
md_error(mddev, rdev);
}
Expand Down

0 comments on commit 74491c7

Please sign in to comment.