|SUCCESS| net/mana: do not block Rx interrupt calls during a reset
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Tue Nov 10 23:50:35 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172803
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-10
**Info**
1. `mana_reset_lock()` treats every non-zero return from `pthread_mutex_trylock()` as "lock held, retry". The new loop is:
```c
while (pthread_mutex_trylock(&priv->reset_ops_lock)) {
```
Only `EBUSY` means another thread holds the lock. Any other error (for example `EINVAL`) would make the caller spin for as long as `dev_state` stays `MANA_DEV_ACTIVE`. Retrying only on `EBUSY`, and returning the error otherwise, makes the loop's intent explicit:
```c
int ret;
while ((ret = pthread_mutex_trylock(&priv->reset_ops_lock)) != 0) {
if (ret != EBUSY)
return -ret;
if (rte_atomic_load_explicit(&priv->dev_state,
rte_memory_order_relaxed) != MANA_DEV_ACTIVE)
return -EBUSY;
rte_pause();
}
```
This also gives the explicit `!= 0` comparison that DPDK style prefers.
Review-Result: CLEAN
More information about the test-report
mailing list