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.
Showing the changes to include/linux/blkdev.h (1 of 2 files). Show all
Unified · Split
| @@ -444,7 +444,7 @@ struct request_queue { · 443 unmodified lines | ||
| 444 | 444 | struct mutex sysfs_lock; |
| 445 | 445 | |
| 446 | 446 | int bypass_depth; |
| 447 | − int mq_freeze_depth; | |
| 447 | + atomic_t mq_freeze_depth; | |
| 448 | 448 | |
| 449 | 449 | #if defined(CONFIG_BLK_DEV_BSG) |
| 450 | 450 | bsg_job_fn *bsg_job_fn; |