From: Alan Stern Date: Thu, 15 Mar 2007 19:51:28 +0000 (-0400) Subject: [PATCH] sysfs: reinstate exclusion between method calls and attribute unregistration X-Git-Tag: v2.6.21-rc4~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b0d26a86943370c04d6833c6edba2a72a6e240;p=pandora-kernel.git [PATCH] sysfs: reinstate exclusion between method calls and attribute unregistration This patch (as869) reinstates the mutual exclusion between sysfs attribute method calls and attribute unregistration. The previously-reported deadlocks have been fixed, and this exclusion is by far the simplest way to avoid races during driver unbinding. The check for orphaned read-buffers has been moved down slightly, so that the remainder of a partially-read buffer will still be available to userspace even after the attribute has been unregistered. Signed-off-by: Alan Stern Cc: Hugh Dickins Cc: Cornelia Huck Cc: Oliver Neukum Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed