From: Christoph Hellwig Date: Wed, 26 Apr 2017 07:34:20 +0000 (+0200) Subject: scsi_transport_sas: always pass 0 error to blk_end_request_all X-Git-Tag: MMI-PSA29.97-13-9~5704^2~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d188b90c48e418e102a1f42872b13dfe386ab6a7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git scsi_transport_sas: always pass 0 error to blk_end_request_all The SAS transport queues are only used by bsg, and bsg always looks at the scsi_request results and never add the error passed in the end_io callback. Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c index a2b279737a4b..9fdbd50c31b4 100644 --- a/drivers/scsi/scsi_transport_sas.c +++ b/drivers/scsi/scsi_transport_sas.c @@ -186,7 +186,7 @@ static void sas_smp_request(struct request_queue *q, struct Scsi_Host *shost, ret = handler(shost, rphy, req); scsi_req(req)->result = ret; - blk_end_request_all(req, ret); + blk_end_request_all(req, 0); spin_lock_irq(q->queue_lock); }