Re: [PATCH v2 4/5] scsi: Add scsi_restart_hctx()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux