From: Brian King Date: Thu, 17 Jun 2010 18:55:13 +0000 (-0500) Subject: [SCSI] ibmvfc: Fix soft lockup on resume X-Git-Tag: v2.6.36-rc1~570^2~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73ee5d8672871bd69077ca71e7208a36bfa6343c;p=pandora-kernel.git [SCSI] ibmvfc: Fix soft lockup on resume 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: Brian King Signed-off-by: James Bottomley --- Reading git-diff-tree failed