diff options
author | Roland Dreier <roland@purestorage.com> | 2012-10-11 20:41:32 (GMT) |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-10-26 19:29:46 (GMT) |
commit | c8292d1da53fa60c7516ab03a9d83f7ea266d335 (patch) | |
tree | 0d325d1acb4b807d724ee66b7f4a1998c7f85ef5 /include/video/ili9320.h | |
parent | c046aa0f0f47719a38854fc6383216392b130704 (diff) | |
download | linux-fsl-qoriq-c8292d1da53fa60c7516ab03a9d83f7ea266d335.tar.xz |
qla2xxx: Update target lookup session tables when a target session changes
It is possible for the target code to change the loop_id or s_id of a
target session in reaction to an FC fabric change. However, the
session structures are stored in tables that are indexed by these two
keys, and if we just change the session structure but leave the
pointers to it in the old places in the table, havoc can ensue. For
example, a new session might come along that should go in the old slot
in the table and overwrite the old session pointer.
To handle this, add a new tgt_ops->update_sess() method that also
updates the "by loop_id" and "by s_id" lookup tables when a session
changes, so that the keys where a session pointer is stored in these
tables always matches the keys in the session structure itself.
(nab: Drop unnecessary double inversion with FCF_CONF_COMP_SUPPORTED
usage)
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: Chad Dupuis <chad.dupuis@qlogic.com>
Cc: Arun Easi <arun.easi@qlogic.com>
Cc: Saurav Kashyap <saurav.kashyap@qlogic.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/video/ili9320.h')
0 files changed, 0 insertions, 0 deletions