diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libfc/fc_disc.c | 14 | ||||
-rw-r--r-- | drivers/scsi/libfc/fc_libfc.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index d0fa9a0ddc8d..04474556f2dc 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c | |||
@@ -65,7 +65,7 @@ void fc_disc_stop_rports(struct fc_disc *disc) | |||
65 | struct fc_lport *lport; | 65 | struct fc_lport *lport; |
66 | struct fc_rport_priv *rdata; | 66 | struct fc_rport_priv *rdata; |
67 | 67 | ||
68 | lport = disc->lport; | 68 | lport = fc_disc_lport(disc); |
69 | 69 | ||
70 | mutex_lock(&disc->disc_mutex); | 70 | mutex_lock(&disc->disc_mutex); |
71 | list_for_each_entry_rcu(rdata, &disc->rports, peers) | 71 | list_for_each_entry_rcu(rdata, &disc->rports, peers) |
@@ -96,7 +96,7 @@ static void fc_disc_recv_rscn_req(struct fc_seq *sp, struct fc_frame *fp, | |||
96 | LIST_HEAD(disc_ports); | 96 | LIST_HEAD(disc_ports); |
97 | struct fc_disc_port *dp, *next; | 97 | struct fc_disc_port *dp, *next; |
98 | 98 | ||
99 | lport = disc->lport; | 99 | lport = fc_disc_lport(disc); |
100 | 100 | ||
101 | FC_DISC_DBG(disc, "Received an RSCN event\n"); | 101 | FC_DISC_DBG(disc, "Received an RSCN event\n"); |
102 | 102 | ||
@@ -275,7 +275,7 @@ static void fc_disc_start(void (*disc_callback)(struct fc_lport *, | |||
275 | */ | 275 | */ |
276 | static void fc_disc_done(struct fc_disc *disc, enum fc_disc_event event) | 276 | static void fc_disc_done(struct fc_disc *disc, enum fc_disc_event event) |
277 | { | 277 | { |
278 | struct fc_lport *lport = disc->lport; | 278 | struct fc_lport *lport = fc_disc_lport(disc); |
279 | struct fc_rport_priv *rdata; | 279 | struct fc_rport_priv *rdata; |
280 | 280 | ||
281 | FC_DISC_DBG(disc, "Discovery complete\n"); | 281 | FC_DISC_DBG(disc, "Discovery complete\n"); |
@@ -313,7 +313,7 @@ static void fc_disc_done(struct fc_disc *disc, enum fc_disc_event event) | |||
313 | */ | 313 | */ |
314 | static void fc_disc_error(struct fc_disc *disc, struct fc_frame *fp) | 314 | static void fc_disc_error(struct fc_disc *disc, struct fc_frame *fp) |
315 | { | 315 | { |
316 | struct fc_lport *lport = disc->lport; | 316 | struct fc_lport *lport = fc_disc_lport(disc); |
317 | unsigned long delay = 0; | 317 | unsigned long delay = 0; |
318 | 318 | ||
319 | FC_DISC_DBG(disc, "Error %ld, retries %d/%d\n", | 319 | FC_DISC_DBG(disc, "Error %ld, retries %d/%d\n", |
@@ -353,7 +353,7 @@ static void fc_disc_error(struct fc_disc *disc, struct fc_frame *fp) | |||
353 | static void fc_disc_gpn_ft_req(struct fc_disc *disc) | 353 | static void fc_disc_gpn_ft_req(struct fc_disc *disc) |
354 | { | 354 | { |
355 | struct fc_frame *fp; | 355 | struct fc_frame *fp; |
356 | struct fc_lport *lport = disc->lport; | 356 | struct fc_lport *lport = fc_disc_lport(disc); |
357 | 357 | ||
358 | WARN_ON(!fc_lport_test_ready(lport)); | 358 | WARN_ON(!fc_lport_test_ready(lport)); |
359 | 359 | ||
@@ -396,7 +396,7 @@ static int fc_disc_gpn_ft_parse(struct fc_disc *disc, void *buf, size_t len) | |||
396 | struct fc_rport_identifiers ids; | 396 | struct fc_rport_identifiers ids; |
397 | struct fc_rport_priv *rdata; | 397 | struct fc_rport_priv *rdata; |
398 | 398 | ||
399 | lport = disc->lport; | 399 | lport = fc_disc_lport(disc); |
400 | disc->seq_count++; | 400 | disc->seq_count++; |
401 | 401 | ||
402 | /* | 402 | /* |
@@ -733,7 +733,7 @@ int fc_disc_init(struct fc_lport *lport) | |||
733 | mutex_init(&disc->disc_mutex); | 733 | mutex_init(&disc->disc_mutex); |
734 | INIT_LIST_HEAD(&disc->rports); | 734 | INIT_LIST_HEAD(&disc->rports); |
735 | 735 | ||
736 | disc->lport = lport; | 736 | disc->priv = lport; |
737 | 737 | ||
738 | return 0; | 738 | return 0; |
739 | } | 739 | } |
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; | |||
52 | #define FC_DISC_DBG(disc, fmt, args...) \ | 52 | #define FC_DISC_DBG(disc, fmt, args...) \ |
53 | FC_CHECK_LOGGING(FC_DISC_LOGGING, \ | 53 | FC_CHECK_LOGGING(FC_DISC_LOGGING, \ |
54 | printk(KERN_INFO "host%u: disc: " fmt, \ | 54 | printk(KERN_INFO "host%u: disc: " fmt, \ |
55 | (disc)->lport->host->host_no, \ | 55 | fc_disc_lport(disc)->host->host_no, \ |
56 | ##args)) | 56 | ##args)) |
57 | 57 | ||
58 | #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ | 58 | #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...) \ |