Skip to content

Commit

Permalink
scsi_transport_sas: always pass 0 error to blk_end_request_all
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Christoph Hellwig authored and axboe committed Apr 26, 2017
1 parent 5136a4f commit d188b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/scsi_transport_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d188b90

Please sign in to comment.