[PATCH] device-mapper: dm-raid1 deadlock fix

From: Alasdair G Kergon
Date: Tue Feb 22 2005 - 09:46:45 EST


Fix a dm-raid1 deadlock: nested spinlocks with _irq.

Signed-Off-By: Alasdair G Kergon <agk@xxxxxxxxxx>
From: Tim Burgess <tim.burgess@xxxxxxxxxx>
--- diff/drivers/md/dm-raid1.c 2005-02-22 14:35:14.000000000 +0000
+++ source/drivers/md/dm-raid1.c 2005-02-22 14:35:01.000000000 +0000
@@ -253,9 +253,9 @@
else {
__rh_insert(rh, nreg);
if (nreg->state == RH_CLEAN) {
- spin_lock_irq(&rh->region_lock);
+ spin_lock(&rh->region_lock);
list_add(&nreg->list, &rh->clean_regions);
- spin_unlock_irq(&rh->region_lock);
+ spin_unlock(&rh->region_lock);
}
reg = nreg;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/