From: Vikas Chaudhary Date: Mon, 16 Dec 2013 11:49:45 +0000 (-0500) Subject: [SCSI] qla4xxx: Reduce rom-lock contention during reset recovery. X-Git-Tag: v3.15-rc1~136^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ebbb5cf640c5240cafde732c56fe24a5514bf8d;p=pandora-kernel.git [SCSI] qla4xxx: Reduce rom-lock contention during reset recovery. Issue: Driver holds rom-lock for too long during reset recovery. During adapter reset testing, it was found that the driver holds the rom-lock for too long, because of which other drivers fail to acquire the rom-lock, leading to reset failures. The primary cause is, in the bootstrap code, while holding the rom-lock, the driver checks if the peg is halted, causing a 2 second contention. Fix: When a reset recovery starts, the driver deduces the cause, and sets appropriate flags in watchdog & recover_adapter routines. This flag should be used to determine if bootstrap is invoked from probe or reset context, reducing the rom-lock footprint of the drivers. Signed-off-by: Vikas Chaudhary Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed