From: Abhijeet Joglekar Date: Tue, 21 Apr 2009 23:26:58 +0000 (-0700) Subject: [SCSI] libfc: Do not retry if the new state is not the same as old state X-Git-Tag: v2.6.30-rc5~53^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76f6804e7e7bb836cbdf4a73fe6c5485e4cc04c2;p=pandora-kernel.git [SCSI] libfc: Do not retry if the new state is not the same as old state For instance, if there is a Plogi pending (remote port is in Plogi state), and the state changes to say NONE (because the port is being logged off), then when the Plogi resp times out, do not start a retry. This patch partially reverts an earlier patch (libfc: check for err when recv and state is incorrect), by moving the state check back to before checking for error. However, if the state does not match, then there is an additional check to see if its an error ptr or a real frame before jumping to err or out respectively. Signed-off-by: Abhijeet Joglekar Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed