[Devel] [PATCH hci-8.1 v7 1/6] ve: Remove STOPPED state

Vladimir Riabchun vladimir.riabchun at virtuozzo.com
Mon Nov 16 20:35:44 MSK 2026



On 11/16/26 18:23, no-reply at sashiko.virtuozzo.com wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Low] ve: commit message omits removal of DEAD transition in
>    ve_destroy()
> --
> 
> commit 23cbc0a68783a5b04322e1e051abf52807d3e18c
> Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
> 
>> ve: Remove STOPPED state
>>
>> We don't need extra STOPPED state. It makes us feel that CT
>> could be started again from it, but it is actually not true.
>>
>> Separate STOPPED state doesn't bring any value. Drop it and
>> transition VE to DEAD state directly on the stop.
>>
>> https://virtuozzo.atlassian.net/browse/VSTOR-142405
>> Reviewed-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
>> Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
> 
> [Severity: Low]
> This isn't a bug, but the changelog leaves out one change the diff makes. The ve_set_state(ve, VE_STATE_DEAD) call in ve_destroy() is deleted, and the message never mentions it.
> 
> The removal looks right. ve_exit_ns() and the ve_start_container() error path now set DEAD, so keeping the call would hit the "already DEAD" warning in ve_set_state(). The old call also stored to the object that kmem_cache_free() frees on the next line.
> 
> One side effect is worth stating. A VE that is destroyed while still in STARTING no longer passes through DEAD. Could the message list this change and explain why it is safe?

Already replied in v6.

> 

-- 
Best regards, Riabchun Vladimir
Linux Kernel Developer, Virtuozzo



More information about the Devel mailing list