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 <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
FUJITA Tomonori 2009-06-17 15:10:10 +09:00 committed by James Bottomley
parent bd2199d417
commit 93bdcba5a7

View File

@ -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);
}
}