]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: irqsave must always be used with the pool->lock spinlock
authorJoe Thornber <ejt@redhat.com>
Tue, 8 Apr 2014 10:08:41 +0000 (11:08 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 8 Apr 2014 14:10:51 +0000 (10:10 -0400)
commite5da463af6d3def9ed19a48749f51d5c3c580c6e
tree3472cec2ea93f35e013a1c1997b231e16c32f264
parentde5e8d93c409ab5d761cfbddb83d09782a0873e6
dm thin: irqsave must always be used with the pool->lock spinlock

Commit 692638b908e ("dm thin: use per thin device deferred bio lists")
incorrectly stopped disabling irqs when taking the pool's spinlock.

Irqs must be disabled when taking the pool's spinlock otherwise a thread
could spin_lock(), then get interrupted to service thin_endio() in
interrupt context, which would then deadlock in spin_lock_irqsave().

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin.c