Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8320
b: refs/heads/master
c: 9e6603d
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Sep 9, 2005
1 parent 766fbd0 commit 4235ecb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 15945fee6f09bff1f86b1a735b5888dc59cf38e3
refs/heads/master: 9e6603da9b9cfb14a6aca3845227f8c59f7eeb9b
4 changes: 2 additions & 2 deletions trunk/drivers/md/raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1708,14 +1708,14 @@ void raid1_quiesce(mddev_t *mddev, int state)
conf_t *conf = mddev_to_conf(mddev);

switch(state) {
case 0:
case 1:
spin_lock_irq(&conf->resync_lock);
conf->barrier++;
wait_event_lock_irq(conf->wait_idle, !conf->nr_pending,
conf->resync_lock, raid1_unplug(mddev->queue));
spin_unlock_irq(&conf->resync_lock);
break;
case 1:
case 0:
spin_lock_irq(&conf->resync_lock);
conf->barrier--;
spin_unlock_irq(&conf->resync_lock);
Expand Down

0 comments on commit 4235ecb

Please sign in to comment.