Skip to content

Commit

Permalink
scsi_transport_sas: needs to call blk_end_request_all for SMP requests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Jun 21, 2009
1 parent bd2199d commit 93bdcba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/scsi_transport_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 93bdcba

Please sign in to comment.