Skip to content

Commit

Permalink
[SCSI] libfcoe: FIP link keep-alive should continue while logged off
Browse files Browse the repository at this point in the history
A check in fcoe_ctlr_send_keep_alive() returns if there's no
port_id for the local port.  This could miss a keep alive if
we just did a host reset and have logged off and will log back in.

Return only if we are doing the port keep alive, in which case
we need to be logged in.

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>
  • Loading branch information
Joe Eykholt authored and James Bottomley committed Jul 27, 2010
1 parent 5611559 commit 281ae64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/fcoe/libfcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static void fcoe_ctlr_send_keep_alive(struct fcoe_ctlr *fip,

fcf = fip->sel_fcf;
lp = fip->lp;
if (!fcf || !lp->port_id)
if (!fcf || (ports && !lp->port_id))
return;

len = sizeof(*kal) + ports * sizeof(*vn);
Expand Down

0 comments on commit 281ae64

Please sign in to comment.