From: Zhang Rui Date: Tue, 29 Apr 2008 06:35:48 +0000 (-0400) Subject: fix a deadlock issue when poking "eject" file X-Git-Tag: v2.6.27-rc1~1050^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d46867b7d27f68a446b073dac7817721ae4c8f;p=pandora-kernel.git fix a deadlock issue when poking "eject" file "/sys/devices/LNXSYSTM:00/.../eject" is used to evaluate _EJx method and eject a device in user space. But system hangs when poking the "eject" file because that the device hot-removal code invoke the driver .remove method which will try to remove the "eject" file as a result. Queues the hot-removal function for deferred execution in this patch. http://bugzilla.kernel.org/show_bug.cgi?id=9772 Signed-off-by: Zhang Rui Signed-off-by: Len Brown Signed-off-by: Andi Kleen --- Reading git-diff-tree failed