[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)
commitde6bf18e9ce0df807dab08cff08751cac383429d
tree3e60e9f88b4da4711a34df273c99a348bdc10236
parent9780eb6cfaf7d2d5ccc061eaf94e7aec6a17791e
[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