aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2011-01-28 19:04:13 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-12 12:02:17 -0500
commitbaf9fdf076a8976431b5de565aef2b98816caecf (patch)
tree42bad5787ee6e58825a7a4c2246c8b58f1e20f9d /include/scsi
parent1a5c2d7e5c8ef239804cb08b68363e0cd2f74a3d (diff)
[SCSI] libfc: add local port hook for provider session lookup
The target provider needs a per-instance lookup table or other way to lookup sessions quickly without going through a linear list or serializing too much. Add a simple void * array indexed by FC-4 type to the fc_lport. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> Committed-by: Nicholas A. Bellinger <nab@linux-iscsi.org> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/libfc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index 3b8f5d83611b..a9aff25a399b 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -805,6 +805,7 @@ struct fc_disc {
805 * @lp_mutex: Mutex to protect the local port 805 * @lp_mutex: Mutex to protect the local port
806 * @list: Handle for list of local ports 806 * @list: Handle for list of local ports
807 * @retry_work: Handle to local port for delayed retry context 807 * @retry_work: Handle to local port for delayed retry context
808 * @prov: Pointers available for use by passive FC-4 providers
808 */ 809 */
809struct fc_lport { 810struct fc_lport {
810 /* Associations */ 811 /* Associations */
@@ -860,6 +861,7 @@ struct fc_lport {
860 struct mutex lp_mutex; 861 struct mutex lp_mutex;
861 struct list_head list; 862 struct list_head list;
862 struct delayed_work retry_work; 863 struct delayed_work retry_work;
864 void *prov[FC_FC4_PROV_SIZE];
863}; 865};
864 866
865/** 867/**