diff options
| author | Li Qiang <liqiang01@kylinos.cn> | 2026-07-15 09:58:24 +0800 |
|---|---|---|
| committer | Gabriele Monaco <gmonaco@redhat.com> | 2026-07-23 13:38:23 +0200 |
| commit | b255fc56f4e85fb34a491be9aa31bece3f4f3958 (patch) | |
| tree | 0a4e25858c0dc90df128b00eb48eab923e25794e /tools | |
| parent | 2a8cd68cc0ba9930ee966ef07d6e1a6a4b0e5b0f (diff) | |
rv: Simplify task monitor slot management
The slot array already tracks allocation and task_monitor_count
duplicates that state. On an invalid second release, the old code
warns but still decrements the counter, corrupting later allocations.
Use the slot array as the sole source of truth. Return after warning
about an unused slot, and return -EBUSY when no slot is free.
Reviewed-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Li Qiang <liqiang01@kylinos.cn>
Link: https://lore.kernel.org/r/20260715015825.1413822-1-liqiang01@kylinos.cn
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
