Messages in this thread Patch in this message | | | Date | Tue, 22 Feb 2005 14:44:02 +0000 | From | Alasdair G Kergon <> | Subject | [PATCH] device-mapper: dm-raid1 deadlock fix |
| |
Fix a dm-raid1 deadlock: nested spinlocks with _irq.
Signed-Off-By: Alasdair G Kergon <agk@redhat.com> From: Tim Burgess <tim.burgess@anu.edu.au> --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |