• Thomas Falcon's avatar
    ibmvnic: Fix reset scheduler error handling · af894d23
    Thomas Falcon authored
    In some cases, if the driver is waiting for a reset following
    a device parameter change, failure to schedule a reset can result
    in a hang since a completion signal is never sent.
    
    If the device configuration is being altered by a tool such
    as ethtool or ifconfig, it could cause the console to hang
    if the reset request does not get scheduled. Add some additional
    error handling code to exit the wait_for_completion if there is
    one in progress.
    Signed-off-by: default avatarThomas Falcon <tlfalcon@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    af894d23
ibmvnic.c 130 KB