Searched hist:"30783587 b0f318b9e2e165f34cf5dfd9425a4904" (Results 1 – 1 of 1) sorted by relevance
/linux/fs/fuse/ |
H A D | cuse.c | 30783587b0f318b9e2e165f34cf5dfd9425a4904 Sat Nov 17 11:45:48 UTC 2012 David Herrmann <dh.herrmann@googlemail.com> 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>
|