From: Arnd Bergmann Date: Tue, 1 Jun 2010 20:53:07 +0000 (+0200) Subject: tty: untangle locking of wait_until_sent X-Git-Tag: v2.6.36-rc1~294^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=203652192634c1fce5e79df0a8ff2fabfaefd3ab;p=pandora-kernel.git tty: untangle locking of wait_until_sent Some wait_until_sent versions require the big tty mutex, others don't and some callers of wait_until_sent already hold it while other don't. That leads to recursive use of the BTM in these functions, which we're trying to get rid of. This turns all cleans up the locking there so that the driver's wait_until_sent function never takes the BTM itself if it is already called with that lock held. Signed-off-by: Arnd Bergmann Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed