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>
This commit is contained in:
committed by
Martin K. Petersen
parent
7cddf7e8d1
commit
b84b6ec0f9
@@ -168,6 +168,7 @@ static inline struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd)
|
||||
}
|
||||
|
||||
void scsi_done(struct scsi_cmnd *cmd);
|
||||
void scsi_done_direct(struct scsi_cmnd *cmd);
|
||||
|
||||
extern void scsi_finish_command(struct scsi_cmnd *cmd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user