blkcg: change a spin_lock() to spin_lock_irq()
Subsystems (3)
PATCH 1/1 blkcg: change a spin_lock() to spin_lock_irq()
Smatch complains that we re-enable IRQs twice. It looks like we forgot to disable them here on the spin_trylock() failure path. This was added in 9f13ef678e "blkcg: use double locking instead of RCU for blkg synchronization".
Signed-off-by Dan Carpenter <[email protected]>
block/blk-cgroup.c +1 -1
@@ -1598,7 +1598,7 @@ static int blkiocg_pre_destroy(struct cgroup *cgroup) }else {spin_unlock_irq (&blkcg->lock);cpu_relax (); -spin_lock (&blkcg->lock); +spin_lock_irq (&blkcg->lock); } }
Jens Axboe
maintainerQuoted 4 lines · Dan Carpenter
Smatch complains that we re-enable IRQs twice. It looks like we forgot to disable them here on the
spin_trylock()failure path. This was added in9f13ef678e"blkcg: use double locking instead of RCU for blkg synchronization".
Thanks, that is indeed a screwup. Fix applied.
Signature · 1 line
Jens Axboe