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

Submitted by Konstantin Khorenko on April 8, 2019, 12:55 p.m.

Details

Message ID 201904081255.x38Ctboc011326@finist_el8beta.work.ct
State New
Series "ve/tty: drop redundant assert for tty_mutex in vtty_release_init()"
Headers show

Commit Message

Konstantin Khorenko April 8, 2019, 12:55 p.m.
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@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@virtuozzo.com>
    Acked-by: Cyrill Gorcunov <gorcunov@virtuozzo.com>
---
 drivers/tty/pty.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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)