tty: Prevent "read/write wait queue active!" log flooding
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 16 Oct 2014 17:54:36 +0000 (13:54 -0400)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:05:15 +0000 (17:05 +0800)
commit871518e986137e72b3ad20e5b3fd7093cda69bbf
tree8dda4e4e09eb263858a03b1bcc7533048296bf90
parent26bc3aa52a38602cc5a4430571d90e158430573b
tty: Prevent "read/write wait queue active!" log flooding

commit 494c1eac7e73f719af9d474a96ec8494c33efd6a upstream.

Only print one warning when a task is on the read_wait or write_wait
wait queue at final tty release.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/tty/tty_io.c