diff options
| author | Christoph Hellwig <hch@lst.de> | 2015-05-07 03:38:13 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@fb.com> | 2015-05-19 11:12:59 -0400 |
| commit | 4ecd4fef3a074c8bb43c391a57742c422469ebbd (patch) | |
| tree | 76916ca92a584daf7dd398eff0997e7e82bfa4f9 /include/linux/blkdev.h | |
| parent | 5b3f341f098d60da2970758db6a05bd851eb6b39 (diff) | |
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/linux/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 2 |
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 { | |||
| 444 | struct mutex sysfs_lock; | 444 | struct mutex sysfs_lock; |
| 445 | 445 | ||
| 446 | int bypass_depth; | 446 | int bypass_depth; |
| 447 | int mq_freeze_depth; | 447 | atomic_t mq_freeze_depth; |
| 448 | 448 | ||
| 449 | #if defined(CONFIG_BLK_DEV_BSG) | 449 | #if defined(CONFIG_BLK_DEV_BSG) |
| 450 | bsg_job_fn *bsg_job_fn; | 450 | bsg_job_fn *bsg_job_fn; |
