Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362079
b: refs/heads/master
c: 8a9a713
h: refs/heads/master
i:
  362077: fb96d35
  362075: 6d01a14
  362071: 787614f
  362063: 44e5b83
  362047: 52bc94b
v: v3
  • Loading branch information
Robert Love committed Mar 25, 2013
1 parent 5ccc1ee commit d94c42d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9c4358edb285cead00a0d6cf0644c84ee773026
refs/heads/master: 8a9a71381208b2364a2d12b0d257ae333917a1bc
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ static int bnx2fc_libfc_config(struct fc_lport *lport)
fc_elsct_init(lport);
fc_exch_init(lport);
fc_rport_init(lport);
fc_disc_init(lport);
fc_disc_init(lport, lport);
return 0;
}

Expand Down
11 changes: 6 additions & 5 deletions trunk/drivers/scsi/fcoe/fcoe_ctlr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2826,6 +2826,8 @@ static void fcoe_ctlr_vn_timeout(struct fcoe_ctlr *fip)
int fcoe_libfc_config(struct fc_lport *lport, struct fcoe_ctlr *fip,
const struct libfc_function_template *tt, int init_fcp)
{
void *priv = lport;

/* Set the function pointers set by the LLDD */
memcpy(&lport->tt, tt, sizeof(*tt));
if (init_fcp && fc_fcp_init(lport))
Expand All @@ -2842,12 +2844,11 @@ int fcoe_libfc_config(struct fc_lport *lport, struct fcoe_ctlr *fip,
lport->tt.disc_start = fcoe_ctlr_disc_start;
lport->tt.disc_stop = fcoe_ctlr_disc_stop;
lport->tt.disc_stop_final = fcoe_ctlr_disc_stop_final;
mutex_init(&lport->disc.disc_mutex);
INIT_LIST_HEAD(&lport->disc.rports);
lport->disc.priv = fip;
} else {
fc_disc_init(lport);
priv = fip;
}

fc_disc_init(lport, priv);

return 0;
}
EXPORT_SYMBOL_GPL(fcoe_libfc_config);
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/libfc/fc_disc.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,9 @@ static void fc_disc_stop_final(struct fc_lport *lport)
/**
* fc_disc_init() - Initialize the discovery layer for a local port
* @lport: The local port that needs the discovery layer to be initialized
* @priv: Private data structre for users of the discovery layer
*/
int fc_disc_init(struct fc_lport *lport)
int fc_disc_init(struct fc_lport *lport, void *priv)
{
struct fc_disc *disc;

Expand All @@ -736,7 +737,7 @@ int fc_disc_init(struct fc_lport *lport)
mutex_init(&disc->disc_mutex);
INIT_LIST_HEAD(&disc->rports);

disc->priv = lport;
disc->priv = priv;

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/scsi/libfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ void fc_rport_terminate_io(struct fc_rport *);
/*
* DISCOVERY LAYER
*****************************/
int fc_disc_init(struct fc_lport *);
int fc_disc_init(struct fc_lport *, void *);

static inline struct fc_lport *fc_disc_lport(struct fc_disc *disc)
{
Expand Down

0 comments on commit d94c42d

Please sign in to comment.