From: Thomas Hellstrom Date: Mon, 2 Mar 2009 10:10:56 +0000 (+0100) Subject: drm: Avoid client deadlocks when the master disappears. X-Git-Tag: v2.6.29-rc7~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fda714c29cdf360464059044b221450decb4b913;p=pandora-kernel.git drm: Avoid client deadlocks when the master disappears. This is done by 1) Wake up lock waiters when we close the master file descriptor. Not when the master structure is removed, since the latter requires the waiters themselves to release the refcount on the master structure -> Deadlock. 2) Send a SIGTERM to all clients waiting for the lock. Normally these clients will get a SIGPIPE when the X server dies, but clients may also spin trying to grab the DRM lock, without getting any sort of notification. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- Reading git-diff-tree failed