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

Keith Busch kbusch at kernel.org
Wed Sep 16 16:57:10 EDT 2020


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?



More information about the Linux-nvme mailing list