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
+ tty_set_lock_subclass(tty);
+#endif
#endif
return tty;
}
--
2.43.0
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel