Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

FUJITA Tomonori and committed by
James Bottomley
93bdcba5 bd2199d4

+2 -2
+2 -2
drivers/scsi/scsi_transport_sas.c
··· 173 173 ret = handler(shost, rphy, req); 174 174 req->errors = ret; 175 175 176 - spin_lock_irq(q->queue_lock); 176 + blk_end_request_all(req, ret); 177 177 178 - req->end_io(req, ret); 178 + spin_lock_irq(q->queue_lock); 179 179 } 180 180 } 181 181