提交 c57c1644 编写于 作者: E Eric Biggers 提交者: Greg Kroah-Hartman

vt: drop redundant might_sleep() in do_con_write()

The might_sleep() in do_con_write() is redundant because console_lock()
already contains might_sleep().  Remove it.
Signed-off-by: NEric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20200224073450.292892-1-ebiggers@kernel.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 da9a5aa3
...@@ -2577,8 +2577,6 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co ...@@ -2577,8 +2577,6 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co
if (in_interrupt()) if (in_interrupt())
return count; return count;
might_sleep();
console_lock(); console_lock();
vc = tty->driver_data; vc = tty->driver_data;
if (vc == NULL) { if (vc == NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册