Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213358
b: refs/heads/master
c: 4858682
h: refs/heads/master
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Oct 7, 2010
1 parent ae0164b commit 3a3c433
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: a6751ccb9ba85180c84135cc921eea11d83d5689
refs/heads/master: 485868208ee833628d49f81b4609001749d92d56
13 changes: 7 additions & 6 deletions trunk/drivers/scsi/fnic/fnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ static struct scsi_host_template fnic_host_template = {
};

static void
fnic_get_host_def_loss_tmo(struct Scsi_Host *shost)
fnic_set_rport_dev_loss_tmo(struct fc_rport *rport, u32 timeout)
{
struct fc_lport *lp = shost_priv(shost);
struct fnic *fnic = lport_priv(lp);

fc_host_def_dev_loss_tmo(shost) = fnic->config.port_down_timeout / 1000;
if (timeout)
rport->dev_loss_tmo = timeout;
else
rport->dev_loss_tmo = 1;
}

static void fnic_get_host_speed(struct Scsi_Host *shost);
Expand Down Expand Up @@ -145,9 +145,9 @@ static struct fc_function_template fnic_fc_functions = {
.show_starget_port_name = 1,
.show_starget_port_id = 1,
.show_rport_dev_loss_tmo = 1,
.set_rport_dev_loss_tmo = fnic_set_rport_dev_loss_tmo,
.issue_fc_host_lip = fnic_reset,
.get_fc_host_stats = fnic_get_stats,
.get_host_def_dev_loss_tmo = fnic_get_host_def_loss_tmo,
.dd_fcrport_size = sizeof(struct fc_rport_libfc_priv),
.terminate_rport_io = fnic_terminate_rport_io,
.bsg_request = fc_lport_bsg_request,
Expand Down Expand Up @@ -712,6 +712,7 @@ static int __devinit fnic_probe(struct pci_dev *pdev,
goto err_out_free_exch_mgr;
}
fc_host_maxframe_size(lp->host) = lp->mfs;
fc_host_dev_loss_tmo(lp->host) = fnic->config.port_down_timeout / 1000;

sprintf(fc_host_symbolic_name(lp->host),
DRV_NAME " v" DRV_VERSION " over %s", fnic->name);
Expand Down

0 comments on commit 3a3c433

Please sign in to comment.