fcoe: fix reset of fip selection time.
Subsystems (2)
PATCH 1/1 fcoe: fix reset of fip selection time.
Do not reset fip selection time for every advertisement in fcoe_ctlr_recv_adv() but set it only once for the first validated FCF. Otherwise FCF selection won't happen when the advertisements consistently arrive with sub FCOE_CTLR_START_DELAY periodicity.
--- drivers/scsi/fcoe/fcoe_ctlr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/fcoe/fcoe_ctlr.c +2 -1
@@ -1079,7 +1079,8 @@ static void fcoe_ctlr_recv_adv(struct fcoe_ctlr *fip, struct sk_buff *skb)* If this is the first validated FCF, note the time and * set a timer to trigger selection. */ -if (mtu_valid && !fip->sel_fcf &&fcoe_ctlr_fcf_usable (fcf)) { +if (mtu_valid && !fip->sel_fcf && !fip->sel_time && +fcoe_ctlr_fcf_usable (fcf)) { fip->sel_time = jiffies +msecs_to_jiffies (FCOE_CTLR_START_DELAY ); if (!timer_pending(&fip->timer) ||
Quoted 30 lines · Usha Ketineni
Do not reset fip selection time for every advertisement in
fcoe_ctlr_recv_adv()but set it only once for the first validated FCF. Otherwise FCF selection won't happen when the advertisements consistently arrive with subFCOE_CTLR_START_DELAYperiodicity.Tested-by Narendra K <[email protected]>Acked-by Neil Horman <[email protected]>Reviewed-by Johannes Thumshirn <[email protected]>Acked-by Vasu Dev <[email protected]>Signed-off-by Usha Ketineni <[email protected]>--- drivers/scsi/fcoe/fcoe_ctlr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/scsi/fcoe/fcoe_ctlr.c +2
-1@@ -1079,7 +1079,8 @@ static void fcoe_ctlr_recv_adv(struct fcoe_ctlr *fip, struct sk_buff *skb)* If this is the first validated FCF, note the time and * set a timer to trigger selection. */ -if (mtu_valid && !fip->sel_fcf &&fcoe_ctlr_fcf_usable (fcf)) { +if (mtu_valid && !fip->sel_fcf && !fip->sel_time && +fcoe_ctlr_fcf_usable (fcf)) { fip->sel_time = jiffies +msecs_to_jiffies (FCOE_CTLR_START_DELAY ); if (!timer_pending(&fip->timer) ||
Quoted 5 lines
_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel
Martin K. Petersen
AppliedQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Usha" == Usha Ketineni <[email protected]> writes:
Usha> Do not reset fip selection time for every advertisement in Usha> fcoe_ctlr_recv_adv() but set it only once for the first validated Usha> FCF. Otherwise FCF selection won't happen when the advertisements Usha> consistently arrive with sub FCOE_CTLR_START_DELAY periodicity.
Applied to 4.6/scsi-queue.
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering