]> git.baikalelectronics.ru Git - kernel.git/commit
block: use an atomic_t for mq_freeze_depth
authorChristoph Hellwig <hch@lst.de>
Thu, 7 May 2015 07:38:13 +0000 (09:38 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 19 May 2015 15:12:59 +0000 (09:12 -0600)
commit36b99cf22efbf36f615e10c32b37585567b1f718
tree76916ca92a584daf7dd398eff0997e7e82bfa4f9
parent92bdc0f81bab1058b091925cb79ba2dfcb90be34
block: use an atomic_t for mq_freeze_depth

lockdep gets unhappy about the not disabling irqs when using the queue_lock
around it.  Instead of trying to fix that up just switch to an atomic_t
and get rid of the lock.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
include/linux/blkdev.h