Commit 06b4125
igc: Add lock to safeguard global Qbv variables
Access to shared variables through hrtimer requires locking in order
to protect the variables because actions to write into these variables
(oper_gate_closed, admin_gate_closed, and qbv_transition) might potentially
occur simultaneously. This patch provides a locking mechanisms to avoid
such scenarios.
Fixes: 175c241 ("igc: Fix TX Hang issue when QBV Gate is closed")
Suggested-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20230807205129.3129346-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent b9077ef commit 06b4125
2 files changed
+36
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4801 | 4801 | | |
4802 | 4802 | | |
4803 | 4803 | | |
| 4804 | + | |
4804 | 4805 | | |
4805 | 4806 | | |
4806 | 4807 | | |
| |||
6119 | 6120 | | |
6120 | 6121 | | |
6121 | 6122 | | |
6122 | | - | |
| 6123 | + | |
6123 | 6124 | | |
| 6125 | + | |
6124 | 6126 | | |
6125 | 6127 | | |
6126 | 6128 | | |
6127 | 6129 | | |
6128 | 6130 | | |
6129 | 6131 | | |
6130 | | - | |
6131 | 6132 | | |
6132 | 6133 | | |
6133 | 6134 | | |
| |||
6136 | 6137 | | |
6137 | 6138 | | |
6138 | 6139 | | |
| 6140 | + | |
| 6141 | + | |
| 6142 | + | |
| 6143 | + | |
| 6144 | + | |
| 6145 | + | |
| 6146 | + | |
| 6147 | + | |
| 6148 | + | |
6139 | 6149 | | |
6140 | 6150 | | |
6141 | 6151 | | |
6142 | 6152 | | |
| 6153 | + | |
| 6154 | + | |
| 6155 | + | |
| 6156 | + | |
| 6157 | + | |
| 6158 | + | |
| 6159 | + | |
| 6160 | + | |
| 6161 | + | |
6143 | 6162 | | |
6144 | 6163 | | |
6145 | 6164 | | |
| |||
6150 | 6169 | | |
6151 | 6170 | | |
6152 | 6171 | | |
| 6172 | + | |
6153 | 6173 | | |
6154 | 6174 | | |
6155 | 6175 | | |
| |||
6217 | 6237 | | |
6218 | 6238 | | |
6219 | 6239 | | |
| 6240 | + | |
| 6241 | + | |
6220 | 6242 | | |
6221 | 6243 | | |
6222 | 6244 | | |
| |||
6241 | 6263 | | |
6242 | 6264 | | |
6243 | 6265 | | |
| 6266 | + | |
| 6267 | + | |
6244 | 6268 | | |
6245 | 6269 | | |
6246 | 6270 | | |
| |||
6619 | 6643 | | |
6620 | 6644 | | |
6621 | 6645 | | |
| 6646 | + | |
6622 | 6647 | | |
6623 | 6648 | | |
| 6649 | + | |
| 6650 | + | |
6624 | 6651 | | |
6625 | 6652 | | |
6626 | 6653 | | |
| |||
6633 | 6660 | | |
6634 | 6661 | | |
6635 | 6662 | | |
| 6663 | + | |
| 6664 | + | |
| 6665 | + | |
6636 | 6666 | | |
6637 | 6667 | | |
6638 | 6668 | | |
| |||
0 commit comments