On 3/6/07, Linus Torvalds <[EMAIL PROTECTED]> wrote:

 - removing the buffer is now just

       mutex_lock(&inode->i_mutex);
       buffer = inode->i_private;
       inode->i_private = NULL;
       mutex_unlock(&inode->i_mutex);

       put_sysfs_buffer(buffer);

 - everybody is happy!


... with the exception that it will again make data associated with
sysfs attributes accessible past the point of returning from
sysfs_remove_file. And that was the point so drivers would not have to
care about handling access to extra data (such as static strings) past
the driver unload.

I wonder if we should keep Oliver's change and require attribute
implementations to offload "delete me" kind of actions to workqueues.

--
Dmitry
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to