|
@@ -635,6 +635,13 @@ struct request_queue {
|
|
|
(1 << QUEUE_FLAG_SAME_COMP) | \
|
|
|
(1 << QUEUE_FLAG_POLL))
|
|
|
|
|
|
+/*
|
|
|
+ * @q->queue_lock is set while a queue is being initialized. Since we know
|
|
|
+ * that no other threads access the queue object before @q->queue_lock has
|
|
|
+ * been set, it is safe to manipulate queue flags without holding the
|
|
|
+ * queue_lock if @q->queue_lock == NULL. See also blk_alloc_queue_node() and
|
|
|
+ * blk_init_allocated_queue().
|
|
|
+ */
|
|
|
static inline void queue_lockdep_assert_held(struct request_queue *q)
|
|
|
{
|
|
|
if (q->queue_lock)
|