lkml.org 
[lkml]   [2018]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 07/16] blk-mq: support multiple hctx maps
From
Date
On 10/30/18 6:59 PM, Sagi Grimberg wrote:
>> +static inline struct blk_mq_hw_ctx *blk_mq_map_queue(struct request_queue *q,
>> + unsigned int flags,
>> + unsigned int cpu)
>> {
>> - return blk_mq_map_queue(q, hctx_type, cpu);
>> + int hctx_type = 0;
>> +
>> + if (q->mq_ops->flags_to_type)
>> + hctx_type = q->mq_ops->flags_to_type(q, flags);
>
> nitpick: I think that rq_flags_to_type is a bit more descriptive here.
> just a personal opinion.

Sure, I can make that change.

--
Jens Axboe

\
 
 \ /
  Last update: 2018-10-31 15:23    [W:0.073 / U:0.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site