dev-mornfall-lvmcache - test: singlenode minor cleanups
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=994c32272e7c36f45defda12848d3856590a0d1f Commit: 994c32272e7c36f45defda12848d3856590a0d1f Parent: 9cdcde494f2824dbf8e549638331ab65b1f56b3a Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Apr 18 18:01:52 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sun Apr 21 23:15:07 2013 +0200
test: singlenode minor cleanups
Move unnecessary code out of locks.
--- daemons/clvmd/clvmd-singlenode.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
daemons/clvmd/clvmd-singlenode.c +4 -4
@@ -218,8 +218,8 @@ maybe_retry: goto retry; } bad: -DEBUGLOG ("Failed to lock resource %s\n" , resource);pthread_mutex_unlock (&_lock_mutex); +DEBUGLOG ("Failed to lock resource %s\n" , resource);return 1 ;/* fail */ }
@@ -251,9 +251,9 @@ static int _unlock_resource(const char *resource, int lockid) }dm_hash_remove (_locks, resource); -dm_free (lck);pthread_cond_broadcast (&_lock_cond);/* wakeup waiters */ pthread_mutex_unlock (&_lock_mutex); +dm_free (lck);return 0 ; }
@@ -312,6 +312,6 @@ struct cluster_ops *init_singlenode_cluster(void) {if (!_init_cluster ())return &_cluster_singlenode_ops; -else -return NULL ; + +return NULL ; }