[Devel] [VZ10 16/21] ve/tty: Use vtty_alloc_tty_struct only when CONFIG_VE
Vasileios Almpanis
vasileios.almpanis at virtuozzo.com
Fri May 15 14:14:02 MSK 2026
On 5/7/26 9:10 PM, Vladimir Riabchun wrote:
> https://virtuozzo.atlassian.net/browse/VSTOR-130116
>
> Feature: !CONFIG_VE build
> Fixes: a35101ad1bc3 ("vtty: fix slave peer lockdep annotation")
> Signed-off-by: Vladimir Riabchun<vladimir.riabchun at virtuozzo.com>
> ---
> drivers/tty/tty_io.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
> index 0d1e4ffe2bec..a87d6e879d6a 100644
> --- a/drivers/tty/tty_io.c
> +++ b/drivers/tty/tty_io.c
> @@ -3214,7 +3214,11 @@ struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx)
> tty->dev = tty_get_device(tty);
>
> #ifdef CONFIG_TTY
> +#ifdef CONFIG_VE
> vtty_alloc_tty_struct(driver, tty);
> +#else
Why do we want unconditionally annotate mutex when |driver !=
vttys_driver|?
> + tty_set_lock_subclass(tty);
> +#endif
> #endif
> return tty;
> }
--
Best regards, Vasileios Almpanis
Software Developer, Virtuozzo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/devel/attachments/20260515/decc2b95/attachment-0001.html>
More information about the Devel
mailing list