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<[email protected]>
---
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.
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel