[PATCH V3 4/7] nvmet: set default timeout for passthru requests

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Wed Sep 16 17:01:39 EDT 2020


On 9/16/20 13:57, Keith Busch wrote:
> On Tue, Sep 15, 2020 at 02:51:15PM -0700, Chaitanya Kulkarni wrote:
>> @@ -242,6 +242,8 @@ static void nvmet_passthru_execute_cmd(struct nvmet_req *req)
>>   		goto out_put_ns;
>>   	}
>>   
>> +	rq->timeout = q->queuedata ? NVME_IO_TIMEOUT : ADMIN_TIMEOUT;
>> +
> Any reason you didn't use your new nvme_default_timeout() for this
> assignment?
> 
Yes, since it is being modified in next patches and easy to review that
way.



More information about the Linux-nvme mailing list