![]() | |||||||||||||
Messages in this thread |
On 3/6/07, Linus Torvalds <torvalds@linux-foundation.org> 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2007-03-07 16:59 [from the cache] ©2003-2008 | |||||||||||||