sysfs: Update sysfs_setxattr so it updates secdata under the sysfs_mutex
authorEric W. Biederman <ebiederm@maxwell.aristanetworks.com>
Sun, 8 Nov 2009 07:26:59 +0000 (23:26 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:24:53 +0000 (11:24 -0800)
commitf44d3e7857e5d21413fc9a2b61948190c73705e7
treed93591de4747cd59e4ee8ba8dfe97867cbdad6fd
parentd3a3b0adad0865c12e39b712ca89efbd0a3a0dbc
sysfs: Update sysfs_setxattr so it updates secdata under the sysfs_mutex

The sysfs_mutex is required to ensure updates are and will remain
atomic with respect to other inode iattr updates, that do not happen
through the filesystem.

Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/inode.c