tree 6c915e6a181d0eef4a67c879e4adc899d336a34d
parent 15945fee6f09bff1f86b1a735b5888dc59cf38e3
author NeilBrown <[EMAIL PROTECTED]> Sat, 10 Sep 2005 06:23:48 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sat, 10 Sep 2005 06:39:10 -0700

[PATCH] md: raid1_quiesce is back to front, fix it.

A state of 0 mean 'not quiesced'
A state of 1 means 'is quiesced'

The original code got this wrong.

Signed-off-by: Neil Brown <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 drivers/md/raid1.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1708,14 +1708,14 @@ void raid1_quiesce(mddev_t *mddev, int s
        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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to