diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-01-21 20:55:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-25 00:38:24 +0100 |
commit | 4a67a1bc0b3a0db017b560cee27370d141c58e25 (patch) | |
tree | ab039581d41c9fa45a1bac9eb843baa1312a5969 /drivers/base/bus.c | |
parent | SYSFS: use standard magic.h for sysfs (diff) | |
download | linux-4a67a1bc0b3a0db017b560cee27370d141c58e25.tar.xz linux-4a67a1bc0b3a0db017b560cee27370d141c58e25.zip |
sysfs: Take sysfs_mutex when fetching the root inode.
sysfs_get_inode ultimately calls sysfs_count_nlink when the a
directory inode is fectched. sysfs_count_nlink needs to be
called under the sysfs_mutex to guard against the unlikely
but possible scenario that the root directory is changing
as we are counting the number entries in it, and just in
general to be consistent.
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/bus.c')
0 files changed, 0 insertions, 0 deletions