diff options
author | Saurav Kashyap <skashyap@marvell.com> | 2019-08-23 12:52:43 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-30 01:51:19 +0300 |
commit | 3480e7a8c8e47a6ee101ab722c58d61761b67e4a (patch) | |
tree | 777a30c2f1a72f61d81cce2812bc2c234b5fc5fb /tools/perf/scripts/python | |
parent | 5797bcc897c363a775ac3d929b62d2579bdf8573 (diff) | |
download | linux-3480e7a8c8e47a6ee101ab722c58d61761b67e4a.tar.xz |
scsi: qedf: Fix race betwen fipvlan request and response path
There is a race b/w fipvlan request and response path:
=====
qedf_fcoe_process_vlan_resp:113]:2: VLAN response, vid=0xffd.
qedf_initiate_fipvlan_req:165]:2: vlan = 0x6ffd already set.
qedf_set_vlan_id:139]:2: Setting vlan_id=0ffd prio=3.
======
The request thread sees that vlan is already set and fails to call
ctrl_link_up.
Fix:
- While setting vlan_id use local variable and before setting vlan_id.
- Call fcoe_ctlr_link_up in next iteration of fipvlan request.
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions