[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 <firstname.lastname@example.org>
Cc: Hugh Dickins <email@example.com>
Cc: Cornelia Huck <firstname.lastname@example.org>
Cc: Oliver Neukum <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
2 files changed