• Brian King's avatar
    [SCSI] ibmvfc: Fix soft lockup on resume · 73ee5d86
    Brian King authored
    This fixes a softlockup seen on resume. During resume, the CRQ
    must be reenabled. However, the H_ENABLE_CRQ hcall used to do
    this may return H_BUSY or H_LONG_BUSY. When this happens, the
    caller is expected to retry later. Normally the H_ENABLE_CRQ
    succeeds relatively soon. However, we have seen cases where
    this can take long enough to see softlockup warnings.
    This patch changes a simple loop, which was causing the
    softlockup, to a loop at task level which sleeps between
    retries rather than simply spinning.
    Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
    73ee5d86
ibmvfc.c 134 KB