diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-11-17 12:45:48 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2013-01-17 13:04:57 +0100 |
commit | 30783587b0f318b9e2e165f34cf5dfd9425a4904 (patch) | |
tree | 4aeaf43d76cda5cad2c968214c1efce047f53f71 /fs/Kconfig | |
parent | 8ce03fd76d323526a693d05d85296ef07a387a9f (diff) | |
download | lwn-30783587b0f318b9e2e165f34cf5dfd9425a4904.tar.gz lwn-30783587b0f318b9e2e165f34cf5dfd9425a4904.zip |
cuse: do not register multiple devices with identical names
Sysfs doesn't allow two devices with the same name, but we register a
sysfs entry for each cuse device without checking for name collisions.
This extends the registration to first check whether the name was already
registered.
To avoid race-conditions between the name-check and linking the device, we
need to protect the whole registration with a mutex.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/Kconfig')
0 files changed, 0 insertions, 0 deletions