Re: [PATCH v3 07/17] rv: Add KUnit stub to rv_react() and rv_*_task_monitor_slot()

From: Nam Cao

Date: Thu Jul 02 2026 - 10:00:32 EST


Gabriele Monaco <gmonaco@xxxxxxxxxx> writes:
> Add KUNIT_STATIC_STUB_REDIRECT to allow those functions to be stubbed in
> a KUnit test. This is useful to catch reaction without creating a custom
> reactor and going through the effort of setting it from a test.
> rv_{get/put}_task_monitor_slot() rely on a lock, but this isn't
> necessary during a unit test, so simply skip the calls.
>
> Signed-off-by: Gabriele Monaco <gmonaco@xxxxxxxxxx>

Reviewed-by: Nam Cao <namcao@xxxxxxxxxxxxx>