History

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.

Christoph Hellwig committed 11 years ago

Commit 4ecd4fe1 parent 5b3f3412 files · +11 −15Browse files

Showing the changes to include/linux/blkdev.h (1 of 2 files). Show all

Unified · Split

include/linux/blkdev.h+1−1
@@ -444,7 +444,7 @@ struct request_queue { · 443 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t