]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: usb: storage: Complete the SCSI request directly
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Tue, 1 Feb 2022 21:09:54 +0000 (22:09 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Feb 2022 04:14:15 +0000 (23:14 -0500)
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>
drivers/usb/storage/usb.c

index 8b543f2c9857530643ccf376faa401eba3c1d055..ed7c6ad96a743622083d15dd53c4b074538b9e28 100644 (file)
@@ -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 (;;) */