From: FUJITA Tomonori Date: Wed, 17 Jun 2009 06:10:10 +0000 (+0900) Subject: scsi_transport_sas: needs to call blk_end_request_all for SMP requests X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=93bdcba5a7e55307e27671594c3cd8b4669b9e7a;p=linux-beck.git scsi_transport_sas: needs to call blk_end_request_all for SMP requests We need to call blk_end_request_all to complete SMP requests properly. Signed-off-by: FUJITA Tomonori Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c index d606452297cf..0895d3c71b03 100644 --- a/drivers/scsi/scsi_transport_sas.c +++ b/drivers/scsi/scsi_transport_sas.c @@ -173,9 +173,9 @@ static void sas_smp_request(struct request_queue *q, struct Scsi_Host *shost, ret = handler(shost, rphy, req); req->errors = ret; - spin_lock_irq(q->queue_lock); + blk_end_request_all(req, ret); - req->end_io(req, ret); + spin_lock_irq(q->queue_lock); } }