From: Alexei Potashnik Date: Tue, 14 Jul 2015 20:00:46 +0000 (-0400) Subject: qla2xxx: added sess generations to detect RSCN update races X-Git-Tag: omap-for-v4.3/fixes-merge-window~171^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df673274fa4896f25f0bf348d2a3535d74b4cbec;p=pandora-kernel.git qla2xxx: added sess generations to detect RSCN update races RSCN processing in qla2xxx driver can run in parallel with ELS/IO processing. As such the decision to remove disappeared fc port's session could be stale, because a new login sequence has occurred since and created a brand new session. Previous mechanism of dealing with this by delaying deletion request was prone to erroneous deletions if the event that was supposed to cancel the deletion never arrived or has been delayed in processing. New mechanism relies on a time-like generation counter to serialize RSCN updates relative to ELS/IO updates. Cc: # v3.18+ Signed-off-by: Alexei Potashnik Signed-off-by: Himanshu Madhani Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed