From 615188d81c76d08207f4555019913dc4d275b113 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Dec 08 2014 08:41:46 +0000 Subject: Can't backport the assert, depends on 'giant' codebase Just remove the pthread_rwlock_unlock call in destructor to fix the issue in rhbz#1144794. --- diff --git a/ceph-common-do-not-unlock-rwlock-on-destruction.patch b/ceph-common-do-not-unlock-rwlock-on-destruction.patch index e7191d4..b6ba221 100644 --- a/ceph-common-do-not-unlock-rwlock-on-destruction.patch +++ b/ceph-common-do-not-unlock-rwlock-on-destruction.patch @@ -18,7 +18,7 @@ index f901ac0..4699b66 100644 - pthread_rwlock_unlock(&L); + // The following check is racy but we are about to destroy + // the object and we assume that there are no other users. -+ assert(!is_locked()); ++ //assert(!is_locked()); -- hacky backport, no is_locked in firefly pthread_rwlock_destroy(&L); }