summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-05-07 09:38:13 +0200
committerJens Axboe <axboe@fb.com>2015-05-19 17:12:59 +0200
commit4ecd4fef3a074c8bb43c391a57742c422469ebbd (patch)
tree76916ca92a584daf7dd398eff0997e7e82bfa4f9 /include
parentblk-mq: make plug work for mutiple disks and queues (diff)
downloadlinux-4ecd4fef3a074c8bb43c391a57742c422469ebbd.tar.xz
linux-4ecd4fef3a074c8bb43c391a57742c422469ebbd.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blkdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 2da818a48097..bc917956a6d0 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -444,7 +444,7 @@ struct request_queue {
struct mutex sysfs_lock;
int bypass_depth;
- int mq_freeze_depth;
+ atomic_t mq_freeze_depth;
#if defined(CONFIG_BLK_DEV_BSG)
bsg_job_fn *bsg_job_fn;