]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] configfs: Consolidate locking around configfs_detach_prep() in configfs_rmdir()
authorLouis Rilling <louis.rilling@kerlabs.com>
Fri, 15 Aug 2008 19:37:23 +0000 (12:37 -0700)
committerMark Fasheh <mfasheh@suse.com>
Fri, 22 Aug 2008 18:09:02 +0000 (11:09 -0700)
commitd029b58794f5dd2b8f34bfd693b98280db86e724
tree3e60e9f88b4da4711a34df273c99a348bdc10236
parent1b52a063fdb9e220f8f653c8bfca8e6497b4ffc2
[PATCH] configfs: Consolidate locking around configfs_detach_prep() in configfs_rmdir()

It appears that configfs_rmdir() can protect configfs_detach_prep() retries with
less calls to {spin,mutex}_{lock,unlock}, and a cleaner code.

This patch does not change any behavior, except that it removes two useless
lock/unlock pairs having nothing inside to protect and providing a useless
barrier.

Signed-off-by: Louis Rilling <louis.rilling@kerlabs.com>
Signed-off-by: Joel Becker <Joel.Becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/configfs/dir.c