]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - block/blk-cgroup.c
blkcg: change a spin_lock() to spin_lock_irq()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 Mar 2012 18:57:08 +0000 (20:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Mar 2012 18:57:08 +0000 (20:57 +0200)
commita5567932fc926739e29e98487128080f40c61710
tree8bd1995697c0c86f605a6ddb213312454ac7f467
parenteb7d8c07f9c5fca6190b0d328179551122d1b8a3
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 <dan.carpenter@oracle.com>`
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c