diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2010-07-21 00:19:53 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-28 16:05:52 +0200 |
commit | 0685230c59b5482e04ab50e7afc51119ceaba651 (patch) | |
tree | 64fbf16efb314efc5cba7e313342f0d57ce81e95 /drivers/scsi/libfc/fc_libfc.h | |
parent | [SCSI] libfcoe: convert FIP to lock with mutex instead of spin lock (diff) | |
download | linux-0685230c59b5482e04ab50e7afc51119ceaba651.tar.xz linux-0685230c59b5482e04ab50e7afc51119ceaba651.zip |
[SCSI] libfc: add discovery-private pointer for LLD
For VN_port to VN_port mode, FIP will do discovery and needs a
way to find its state from the local port or discovery structure.
It seems that any other LLD that implements its own discovery
would also need something like this.
Replace disc->lport with disc->priv, and use container_of to
find the lport. We could use disc->priv for that, but
container_of is smaller and faster.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/libfc/fc_libfc.h')
-rw-r--r-- | drivers/scsi/libfc/fc_libfc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_libfc.h b/drivers/scsi/libfc/fc_libfc.h index f5c0ca4b6ef8..16d2162dda1f 100644 --- a/drivers/scsi/libfc/fc_libfc.h +++ b/drivers/scsi/libfc/fc_libfc.h @@ -52,7 +52,7 @@ extern unsigned int fc_debug_logging; #define FC_DISC_DBG(disc, fmt, args...) \ FC_CHECK_LOGGING(FC_DISC_LOGGING, \ printk(KERN_INFO "host%u: disc: " fmt, \ - (disc)->lport->host->host_no, \ + fc_disc_lport(disc)->host->host_no, \ ##args)) #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ |