diff options
Diffstat (limited to 'include/scsi/libfc.h')
-rw-r--r-- | include/scsi/libfc.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index fcbee8c38b0c..5f64e593cca8 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
@@ -739,7 +739,7 @@ struct libfc_function_template { | |||
739 | * @buf_len: Length of the discovery buffer | 739 | * @buf_len: Length of the discovery buffer |
740 | * @disc_id: Discovery ID | 740 | * @disc_id: Discovery ID |
741 | * @rports: List of discovered remote ports | 741 | * @rports: List of discovered remote ports |
742 | * @lport: The local port that discovery is for | 742 | * @priv: Private pointer for use by discovery code |
743 | * @disc_mutex: Mutex that protects the discovery context | 743 | * @disc_mutex: Mutex that protects the discovery context |
744 | * @partial_buf: Partial name buffer (if names are returned | 744 | * @partial_buf: Partial name buffer (if names are returned |
745 | * in multiple frames) | 745 | * in multiple frames) |
@@ -755,7 +755,7 @@ struct fc_disc { | |||
755 | u16 disc_id; | 755 | u16 disc_id; |
756 | 756 | ||
757 | struct list_head rports; | 757 | struct list_head rports; |
758 | struct fc_lport *lport; | 758 | void *priv; |
759 | struct mutex disc_mutex; | 759 | struct mutex disc_mutex; |
760 | struct fc_gpn_ft_resp partial_buf; | 760 | struct fc_gpn_ft_resp partial_buf; |
761 | struct delayed_work disc_work; | 761 | struct delayed_work disc_work; |
@@ -1003,6 +1003,11 @@ void fc_rport_terminate_io(struct fc_rport *); | |||
1003 | *****************************/ | 1003 | *****************************/ |
1004 | int fc_disc_init(struct fc_lport *); | 1004 | int fc_disc_init(struct fc_lport *); |
1005 | 1005 | ||
1006 | static inline struct fc_lport *fc_disc_lport(struct fc_disc *disc) | ||
1007 | { | ||
1008 | return container_of(disc, struct fc_lport, disc); | ||
1009 | } | ||
1010 | |||
1006 | /* | 1011 | /* |
1007 | * FCP LAYER | 1012 | * FCP LAYER |
1008 | *****************************/ | 1013 | *****************************/ |