linux/block/blk-mq.c
/*
 * Caller needs to ensure that we're either frozen/quiesced, or that
 * the queue isn't live yet.
 */
Caller needs to ensure that we're either frozen/quiesced, or that
the queue isn't live yet.
Caller needs to ensure that we ' re either frozen / quiesced or that the queue isn ' t live yet .
static void queue_set_hctx_shared(struct request_queue *q, bool shared)
{
	struct blk_mq_hw_ctx *hctx;
	int i;
	queue_for_each_hw_ctx(q, hctx, i) {
		if (shared)
			hctx->flags |= BLK_MQ_F_TAG_SHARED;
		else
			hctx->flags &= ~BLK_MQ_F_TAG_SHARED;
	}
}
static void queue_set_hctx_shared ( struct request_queue * q , bool shared ) { struct blk_mq_hw_ctx * hctx ; int i ; queue_for_each_hw_ctx ( q , hctx , i ) { if ( shared ) hctx -> flags |= BLK_MQ_F_TAG_SHARED ; else hctx -> flags &= ~ BLK_MQ_F_TAG_SHARED ; } }
Caller needs to ensure that we're either frozen/quiesced, or that
 the queue isn't live yet.
Caller needs to ensure that we ' re either frozen / quiesced or that the queue isn ' t live yet .