Re: [PATCH 09/13] sysfs: Implement sysfs_getattr & sysfs_permission

Eric W. Biederman
2009-11-04T05:50:31Z

"Serge E. Hallyn" <serue@us.ibm.com> writes:

> So the inode->i_mutex is not needed?

Good question. Nothing in sysfs needs it. The VFS does not grab the
inode mutex on this path, but the vfs does grab the inode mutex when
writing to the inode.

Since the VFs isn't grabbing the inode_mutex there is probably a race in
here somewhere if someone looks at things just right.

I am too tired tonight to be that person.

Eric