scsi_transport_sas: always pass 0 error to blk_end_request_all
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Apr 2017 07:34:20 +0000 (09:34 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 26 Apr 2017 13:53:29 +0000 (07:53 -0600)
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 <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/scsi/scsi_transport_sas.c

index a2b2797..9fdbd50 100644 (file)
@@ -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);
        }