From: Laurence Oberman Date: Tue, 25 Nov 2014 14:16:42 +0000 (-0500) Subject: qla2xxx: fix race in handling rport deletion during recovery causes panic X-Git-Tag: omap-for-v3.19/fixes-rc1~11^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9f85b1d32cc55b20984149eacb2e6f4c3aedca3;p=pandora-kernel.git qla2xxx: fix race in handling rport deletion during recovery causes panic When we have an rport disconnect we race during rport deletion and re-connection resulting in a panic. When we do this, we call fc_remote_port_del() just before we do the calls to re-establish the session with the FC transport with fc_remote_port_add() and then fc_remote_port_rolechg(). If we remove the call to fc_remote_port_del() before re-establishing the connection this prevents the race. This patch has resolved this for multiple customers via test kernels. Suggested by Chad Dupuis, implemented and tested by Laurence Oberman. Signed-off-by: Laurence Oberman Acked-by: Chad Dupuis Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed