]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit760c867ca424b1d574878c45731b9160ccf81459
treeb1370c17b55e60dfc8faa8b6a8dae2b394199ce9
parentb0263a761330b608ac0f67b15f8ce511c8d216a0
cuse: use mutex as registration lock instead of spinlocks

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>
fs/fuse/cuse.c