diff options
author | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | 2022-02-02 00:09:54 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-08 07:14:15 +0300 |
commit | 23fe075519c6884d28d8c8fe096c1a6729eb16ae (patch) | |
tree | 7fe8e836cc877003957cb6b9c5e6b87fd73f1cca /drivers/usb/storage | |
parent | b84b6ec0f9767c82d0cfe5b2ac2c41de6b3d37e8 (diff) | |
download | linux-23fe075519c6884d28d8c8fe096c1a6729eb16ae.tar.xz |
scsi: usb: storage: Complete the SCSI request directly
The USB storage driver can complete its requests directly from a kernel
thread. Use scsi_done_direct() to avoid waking ksoftirqd.
Link: https://lore.kernel.org/r/20220201210954.570896-3-sebastian@breakpoint.cc
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r-- | drivers/usb/storage/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 8b543f2c9857..ed7c6ad96a74 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c @@ -417,7 +417,7 @@ SkipForAbort: if (srb) { usb_stor_dbg(us, "scsi cmd done, result=0x%x\n", srb->result); - scsi_done(srb); + scsi_done_direct(srb); } } /* for (;;) */ |