[SRU][o/n/j:linux-azure][PATCH 0/1] Fix race of mana_hwc_post_rx_wqe and new hwc response

Vinicius Peixoto vinicius.peixoto at canonical.com
Thu Aug 29 18:58:27 UTC 2024


BugLink: https://bugs.launchpad.net/bugs/2078001

[Impact]

Microsoft has requested us to backport the following bugfix, currently in the netdev tree:

8af174ea863c net: mana: Fix race of mana_hwc_post_rx_wqe and new hwc response
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=8af174ea863c72f25ce31cee3baad8a301c0cf0f

[Fix]

Clean cherry-pick from the netdev tree to the {oracular,noble,jammy}:linux-azure trees.

[Test plan]

Build and boot tested.

[Where problems could occur]

This seems to have a low risk of regression, since it's just making sure to finish posting an RX workqueue event before waiting for completion in order to avoid a race condition with the hardware. However, any regressions here would likely impact users as MANA-related errors/timeouts.

[Other info]

SF #00393766

Haiyang Zhang (1):
  net: mana: Fix race of mana_hwc_post_rx_wqe and new hwc response

 .../net/ethernet/microsoft/mana/hw_channel.c  | 62 ++++++++++---------
 1 file changed, 34 insertions(+), 28 deletions(-)

-- 
2.43.0




More information about the kernel-team mailing list