[PATCHv4 4/4] nvme: use return value from blk_execute_rq()
Chaitanya Kulkarni
Chaitanya.Kulkarni at wdc.com
Thu Jun 10 19:00:36 PDT 2021
On 6/10/21 14:45, Keith Busch wrote:
> We don't have an nvme status to report if the driver's .queue_rq()
> returns an error without dispatching the requested nvme command. Check
> the return value from blk_execute_rq() for all passthrough commands so
> the caller may know their command was not successful.
>
> If the command is from the target passthrough interface and fails to
> dispatch, synthesize the response back to the host as a internal target
> error.
>
> Signed-off-by: Keith Busch <kbusch at kernel.org>
Looks good.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
More information about the Linux-nvme
mailing list