Commit 8e715cd
net/mlx5: Set command entry semaphore up once got index free
Avoid a race where command work handler may fail to allocate command
entry index, by holding the command semaphore down till command entry
index is being freed.
Fixes: 410bd75 ("net/mlx5: Add retry mechanism to the command entry index allocation")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Eran Ben Elisha <eranbe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>1 parent 07f6dc4 commit 8e715cd
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
| |||
1602 | 1606 | | |
1603 | 1607 | | |
1604 | 1608 | | |
1605 | | - | |
1606 | | - | |
1607 | 1609 | | |
1608 | 1610 | | |
1609 | 1611 | | |
| |||
1626 | 1628 | | |
1627 | 1629 | | |
1628 | 1630 | | |
1629 | | - | |
1630 | | - | |
1631 | | - | |
1632 | | - | |
1633 | 1631 | | |
1634 | 1632 | | |
1635 | 1633 | | |
| |||
1683 | 1681 | | |
1684 | 1682 | | |
1685 | 1683 | | |
1686 | | - | |
1687 | 1684 | | |
1688 | 1685 | | |
1689 | 1686 | | |
| |||
0 commit comments