]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: core: Add scsi_done_direct() for immediate completion
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Thu, 3 Feb 2022 20:29:25 +0000 (21:29 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Feb 2022 04:14:15 +0000 (23:14 -0500)
commita0abafad1f53cbea7d7329f34d02c9ea2e09d653
tree00a7f2afa65288147a550a67f73a4e7577b55559
parentd2119e7bc5fab50dd9f29b1d225a1478650e45be
scsi: core: Add scsi_done_direct() for immediate completion

Add scsi_done_direct() which behaves like scsi_done() except that it
invokes blk_mq_complete_request_direct() in order to complete the request.

Callers from process context can complete the request directly instead
waking ksoftirqd.

Link: https://lore.kernel.org/r/Yfw7JaszshmfYa1d@flow
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c
include/scsi/scsi_cmnd.h