[Devel] [PATCH VZ10 v3 0/2] Improve RPC kill-tasks mechanism

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Thu Jun 11 16:22:52 MSK 2026


Reviewed-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>

On 6/5/26 20:33, Vladimir Riabchun wrote:
> There is a hack for stopping containers with RPC connections,
> but is has several flaws.
> 
> They are described in the second commit and in the task
> https://virtuozzo.atlassian.net/browse/VSTOR-126316
> 
> Suggested approach - atomic (with respect to the set of
> network namespaces) iteration over nets and RPC kill
> in each.
> Current implementation also allows restoring container
> RPC by clearing sn->kill_tasks flag.
> 
> Tested by a CT with nested network namespace.
> 
> Current vzctl per-PID approach:
> [  590.261534] kill-tasks: by task (vzctl:14066) in net:[4026533581]
> [  591.308176] CT: acded8b8-6a7a-494e-a4f1-a58767276b6f: stopped
> 
> With new machine.slice/CTID/ve.rpc_kill interface:
> [  663.055995] kill-tasks: by task (bash:4084) in net:[4026533581]
> [  663.056371] kill-tasks: by task (bash:4084) in net:[4026533987]
> 
> v2: https://lists.openvz.org/pipermail/devel/2026-June/083801.html
> 
> Vladimir Riabchun (2):
>   ve/sunrpc: Refactor {rpc, write}_kill_tasks
>   ve/sunrpc: Implement a per-ve sunrpc killer
> 
>  include/linux/sunrpc/clnt.h |  1 +
>  include/linux/ve.h          |  4 ++++
>  kernel/ve/ve.c              | 46 +++++++++++++++++++++++++++++++++++++
>  net/sunrpc/clnt.c           | 36 +++++++++++++++++------------
>  net/sunrpc/sunrpc_syms.c    |  3 +++
>  5 files changed, 75 insertions(+), 15 deletions(-)
> 

-- 
Best regards, Pavel Tikhomirov
Senior Software Developer, Virtuozzo.



More information about the Devel mailing list