Skip to content

Commit baf9fdf

Browse files
Joe EykholtJames Bottomley
authored andcommitted
[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>
1 parent 1a5c2d7 commit baf9fdf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/scsi/libfc.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ struct fc_disc {
805805
* @lp_mutex: Mutex to protect the local port
806806
* @list: Handle for list of local ports
807807
* @retry_work: Handle to local port for delayed retry context
808+
* @prov: Pointers available for use by passive FC-4 providers
808809
*/
809810
struct fc_lport {
810811
/* Associations */
@@ -860,6 +861,7 @@ struct fc_lport {
860861
struct mutex lp_mutex;
861862
struct list_head list;
862863
struct delayed_work retry_work;
864+
void *prov[FC_FC4_PROV_SIZE];
863865
};
864866

865867
/**

0 commit comments

Comments
 (0)