Btrfs: [PATCH] extent_map: fix locking for bio completion
authorChristoph Hellwig <hch@lst.de>
Tue, 11 Sep 2007 00:02:27 +0000 (20:02 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Tue, 11 Sep 2007 00:02:27 +0000 (20:02 -0400)
commit90f1c19a9fd2a943adc69d2b9b8c83bcc4bba6f9
tree4928c818b63181775d7800158882024390b7103a
parent9433063bcb4b3c0c9e5ef3c24a811b63084dedb4
Btrfs: [PATCH] extent_map: fix locking for bio completion

The bio completion handlers can be run in any context, e.g. when using
the old ide driver they run in hardirq context with irqs disabled so
lockdep rightfully warns about using write_lock_irq useage in these
handlers.

This patch switches clear_extent_bit and set_extent_bit to
write_lock_irqsave to fix this problem.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_map.c