summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_multicast.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-11-05 18:12:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-06 03:39:59 +0100
commitd5e370a4eeb701201bd441b4ec089091dd6f2ce0 (patch)
tree918798cf6b51da2bb2ca69f602f3929289bdcdec /net/bridge/br_multicast.c
parenttty: Don't take tty_mutex for tty count changes (diff)
downloadlinux-d5e370a4eeb701201bd441b4ec089091dd6f2ce0.tar.xz
linux-d5e370a4eeb701201bd441b4ec089091dd6f2ce0.zip
tty: Don't release tty locks for wait queue sanity check
Releasing the tty locks while waiting for the tty wait queues to be empty is no longer necessary nor desirable. Prior to "tty: Don't take tty_mutex for tty count changes", dropping the tty locks was necessary to reestablish the correct lock order between tty_mutex and the tty locks. Dropping the global tty_mutex was necessary; otherwise new ttys could not have been opened while waiting. However, without needing the global tty_mutex held, the tty locks for the releasing tty can now be held through the sleep. The sanity check is for abnormal conditions caused by kernel bugs, not for recoverable errors caused by misbehaving userspace; dropping the tty locks only allows the tty state to get more sideways. Reviewed-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/bridge/br_multicast.c')
0 files changed, 0 insertions, 0 deletions