• Linus Torvalds's avatar
    Lower USB storage settling delay to something more reasonable · a4a47bc0
    Linus Torvalds authored
    The five-second delay can be rather annoying, and makes the system
    appear much less responsive when you connect a USB drive.
    
    It's also not entirely clear that it is needed - the settling delay has
    at least historically been an issue on some Apple iPods, for example,
    and some devices have been reported to need even more than the old 5s
    delay.
    
    But before we penalize them all, let's see how bad it really is.  Some
    of the reasons for long delays seem to be actual historical kernel bugs
    that should probably never have been papered over with a delay in the
    first place (there's a Ubuntu bug report for 2.6.20 about a NULL pointer
    dereference unless 'delay_use' is 8 or more, for example).
    
    It also looks like some distros have already shipped with delay_use=0,
    so the five second default may well be totally historical.
    
    In other words: "Let's see if anybody screams".
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a4a47bc0
usb.c 29 KB