On 04/03/2017 11:42 PM, Christoph Hellwig wrote:
>> +static void scsi_restart_hctx(struct request_queue *q,
>> +                          struct blk_mq_hw_ctx *hctx)
>> +{
>> +    struct blk_mq_tags *tags = hctx->tags;
>> +    struct blk_mq_tag_set *set = q->tag_set;
>> +    int i;
>> +
>> +    rcu_read_lock();
>> +    list_for_each_entry_rcu(q, &set->tag_list, tag_set_list)
>> +            queue_for_each_hw_ctx(q, hctx, i)
>> +                    if (hctx->tags == tags)
>> +                            blk_mq_sched_restart_hctx(hctx);
>> +    rcu_read_unlock();
>> +}
> 
> This looks like generic block layer code, why is it in SCSI?

Hello Christoph,

That's an excellent question. I assume that you are fine with moving
this code to the block layer?

Bart.

Reply via email to