On Wed, 27 Jul 2011 12:52:02 +0300 Dan Carpenter [off-list ref] wrote:
quoted hunk ↗ jump to hunk
This should be a spin_unlock_irq() instead of spin_lock_irq()
Signed-off-by: Dan Carpenter <redacted>
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 9214e08..8b29cd4 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -2117,7 +2117,7 @@ read_more:
mbio->bi_phys_segments = 2;
else
mbio->bi_phys_segments++;
- spin_lock_irq(&conf->device_lock);
+ spin_unlock_irq(&conf->device_lock);
generic_make_request(bio);
bio = NULL;
Thanks!
I haven't yet submitted the patch which introduced that bug, so I just fixed
the patch directly and credited you.
Thanks,
NeilBrown