• Jakub Kicinski's avatar
    nfp: don't wait for resources indefinitely · 9b565576
    Jakub Kicinski authored
    There is currently no timeout to the resource and lock acquiring
    loops.  We printed warnings and depended on user sending a signal
    to the waiting process to stop the waiting.  This doesn't work
    very well when wait happens out of a work queue.  The simplest
    example of that is PCI probe.  When user loads the module and card
    is in a broken state modprobe will wait forever and signals sent
    to it will not actually reach the probing thread.
    
    Make sure all wait loops have a time out.  Set the upper wait time
    to 60 seconds to stay on the safe side.
    Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9b565576
nfp_resource.c 7.25 KB