Message ID | 20220201210954.570896-3-sebastian@breakpoint.cc |
---|---|
State | New |
Headers | show |
Series | Add scsi_done_direct() to complete request directly. | expand |
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index 8b543f2c98575..ed7c6ad96a743 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c @@ -417,7 +417,7 @@ static int usb_stor_control_thread(void * __us) if (srb) { usb_stor_dbg(us, "scsi cmd done, result=0x%x\n", srb->result); - scsi_done(srb); + scsi_done_direct(srb); } } /* for (;;) */
The storage driver completes its requests directly from a kernel thread. Use scsi_done_direct() to avoid waking ksoftirqd. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> --- drivers/usb/storage/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)