cuse: use mutex as registration lock instead of spinlocks
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 17 Nov 2012 11:45:47 +0000 (12:45 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 17 Jan 2013 12:04:51 +0000 (13:04 +0100)
We need to check for name-collisions during cuse-device registration. To
avoid race-conditions, this needs to be protected during the whole device
registration. Therefore, replace the spinlocks by mutexes first so we can
safely extend the locked regions to include more expensive or sleeping
code paths.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>

No differences found