From: Peter Hurley Date: Wed, 5 Nov 2014 17:12:55 +0000 (-0500) Subject: tty: Document check_tty_count() requires tty_lock held X-Git-Tag: omap-for-v3.19/fixes-rc1~86^2~182 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb287e7401bbbf7803731805acbda1d983d1999;p=pandora-kernel.git tty: Document check_tty_count() requires tty_lock held Holding the tty_lock() is necessary to prevent concurrent changes to the tty count that may cause it to differ from the open file list count. The tty_lock() is already held at all call sites. NB: Note that the check for the pty master tty count is safe because the slave's tty_lock() is held while decrementing the pty master tty count. Reviewed-by: Alan Cox Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed