We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b904b5 commit 1db2008Copy full SHA for 1db2008
include/linux/blkdev.h
@@ -728,12 +728,18 @@ static inline void queue_lockdep_assert_held(struct request_queue *q)
728
static inline void queue_flag_set_unlocked(unsigned int flag,
729
struct request_queue *q)
730
{
731
+ if (test_bit(QUEUE_FLAG_INIT_DONE, &q->queue_flags) &&
732
+ kref_read(&q->kobj.kref))
733
+ lockdep_assert_held(q->queue_lock);
734
__set_bit(flag, &q->queue_flags);
735
}
736
737
static inline void queue_flag_clear_unlocked(unsigned int flag,
738
739
740
741
742
743
__clear_bit(flag, &q->queue_flags);
744
745
0 commit comments