<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 5/7/26 9:10 PM, Vladimir Riabchun
wrote:<br>
</div>
<blockquote type="cite" cite="mid:54928f57500a9feda5e2b6ef7213914afb7280ae.1778180945.git.vladimir.riabchun@virtuozzo.com">
<pre wrap="" class="moz-quote-pre"><a class="moz-txt-link-freetext" href="https://virtuozzo.atlassian.net/browse/VSTOR-130116">https://virtuozzo.atlassian.net/browse/VSTOR-130116</a>
Feature: !CONFIG_VE build
Fixes: a35101ad1bc3 ("vtty: fix slave peer lockdep annotation")
Signed-off-by: Vladimir Riabchun <a class="moz-txt-link-rfc2396E" href="mailto:vladimir.riabchun@virtuozzo.com"><vladimir.riabchun@virtuozzo.com></a>
---
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</pre>
</blockquote>
<font face="monospace">Why do we want unconditionally annotate mutex
when <code style="background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); border-radius: 3px; padding: 2px 4px; font-size: 12px;">driver
!= vttys_driver</code>?</font>
<blockquote type="cite" cite="mid:54928f57500a9feda5e2b6ef7213914afb7280ae.1778180945.git.vladimir.riabchun@virtuozzo.com">
<pre wrap="" class="moz-quote-pre">
+        tty_set_lock_subclass(tty);
+#endif
#endif
        return tty;
}
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Best regards, Vasileios Almpanis
Software Developer, Virtuozzo.</pre>
</body>
</html>