[Devel] [PATCH RHEL8 COMMIT] ve/tty: drop redundant assert for tty_mutex in vtty_release_init()

Konstantin Khorenko khorenko at virtuozzo.com
Mon Apr 8 15:55:39 MSK 2019


The commit is pushed to "branch-rh8-4.18.0-32.vz8.1.x" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-32.el8
------>
commit 22207eeb944505c88cc6f6812f50bca4d23597b0
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Mon Apr 8 13:01:06 2019 +0300

    ve/tty: drop redundant assert for tty_mutex in vtty_release_init()
    
    After 0911261d4cb6 ("tty: Don't take tty_mutex for tty count changes")
    tty_mutex is not needed for count changes.
    
    Fixes: 95d021168e48 ("ve/tty: vt -- Implement per VE support for console
    and terminals)"
    https://jira.sw.ru/browse/PSBM-93639
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
    Acked-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
 drivers/tty/pty.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
index 8ec60e131b69..75633be9e412 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
@@ -1292,7 +1292,6 @@ struct tty_driver *vtty_driver(dev_t dev, int *index)
 void vtty_release_init(struct tty_struct *tty, struct tty_struct *o_tty)
 {
 	int pty_master, tty_closing, o_tty_closing;
-	lockdep_assert_held(&tty_mutex);
 
 	if (tty->driver != vttym_driver &&
 	    tty->driver != vttys_driver)



More information about the Devel mailing list