From: Bhanu Prakash Gollapudi Date: Sat, 11 Feb 2012 01:18:57 +0000 (-0800) Subject: [SCSI] libfc: Handle discovery failure during ctlr link down X-Git-Tag: v3.4-rc1~145^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0083208473d3d9a87dcdffaf36a2dbe718dfe282;p=pandora-kernel.git [SCSI] libfc: Handle discovery failure during ctlr link down While we wait for GPN_FT response, if the ctlr link goes down, the stack generates a completion for GPN_FT with error FC_EXCH_CLOSED, and reports a discovery error. Discovery is not retried in this case, and rightly so. However, the 'pending' flag stays set, which does not allow subsequent discovery to succeed as GPN_FT will never be issued. Fix it by clearing the pending flag when the discovery fails due to GPN_FT failure. Signed-off-by: Bhanu Prakash Gollapudi Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed