Commit 93bdcba5 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley

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: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent bd2199d4
...@@ -173,9 +173,9 @@ static void sas_smp_request(struct request_queue *q, struct Scsi_Host *shost, ...@@ -173,9 +173,9 @@ static void sas_smp_request(struct request_queue *q, struct Scsi_Host *shost,
ret = handler(shost, rphy, req); ret = handler(shost, rphy, req);
req->errors = ret; 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);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment