lkml.org 
[lkml]   [2015]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectblk-mq : blk mq map swqueue maybe
Hi Jens,

In blk_mq_map_swqueue(), all the blk_mq_hw_ctx's nr_ctx are set
to zero, and then each blk_mq_ctx's index_hw is set to nr_ctx.
I think the index_hw means the index of the hardware queue that map
to this software queue, so maybe index_hw should be set to
blk_mq_hw_ctx's queue_num.

I'm a student and I probably have misunderstood this code, please help
me to resolve this confusion. Thank you.

static void blk_mq_map_swqueue(struct request_queue *q)
{
.........
queue_for_each_hw_ctx(q, hctx, i) {
.........
hctx->nr_ctx = 0;
}
.........
queue_for_each_ctx(q, ctx, i) {
.........
ctx->index_hw = hctx->nr_ctx;
.........
}
}


\
 
 \ /
  Last update: 2015-04-08 04:41    [W:0.081 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site