|SUCCESS| [v2] net/mana: do not block Rx interrupt calls during a reset

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Thu Nov 12 10:01:01 CET 2026


Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172839

_AI Code Review_

=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-12

Info

1. The retry loop treats any non-zero return from `pthread_mutex_trylock()` as "lock busy":

       while (pthread_mutex_trylock(&priv->reset_ops_lock)) {

   Only `EBUSY` means another thread holds the lock. Any other error (e.g. `EINVAL`) would make this spin with `sched_yield()` for as long as the device stays active, instead of failing. Testing for `EBUSY` explicitly also satisfies the DPDK rule of explicit comparison on integer results:

       int ret;

       while ((ret = pthread_mutex_trylock(&priv->reset_ops_lock)) == EBUSY) {
               if (rte_atomic_load_explicit(&priv->dev_state,
                   rte_memory_order_relaxed) != MANA_DEV_ACTIVE)
                       return -EBUSY;
               sched_yield();
       }
       if (ret != 0)
               return -ret;

Review-Result: CLEAN


More information about the test-report mailing list