Re: [PATCH] usb: storage: bound timeout=0 URB waits to 30s
From: Oliver Neukum
Date: Thu Oct 15 2026 - 09:17:22 EST
On 14.10.26 11:38, Hongyu Xie wrote:
A blanket bound for this helper was suggested before [1] but dropped over
concern that legitimate SCSI commands (format, tape rewind) can exceed
60 seconds. Those commands are issued to tape LUs whose SCSI timeouts
are much longer than 30s; usb-storage-attached tapes holding back a CSW
for more than 30 seconds remain the residual false-positive window of
this change (modern tape bridges use UAS, which is unaffected).
And these concerns are entirely justified.
I am sorry, but there is no uniform timeout suitable for SCSI commands.
If anything hangs based on wrong timeouts, that is the bug to fix.
Regards
Oliver