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)
commit4ecd4fef3a074c8bb43c391a57742c422469ebbd
tree76916ca92a584daf7dd398eff0997e7e82bfa4f9
parent5b3f341f098d60da2970758db6a05bd851eb6b39
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