]> sourceware.org Git - lvm2.git/commitdiff
Release pool in the same reversed order
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 30 Mar 2010 14:38:56 +0000 (14:38 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 30 Mar 2010 14:38:56 +0000 (14:38 +0000)
and with lowered priority after _memlock_dec.

daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c

index 37900e484e7495f7359e1ded354d11ab1ba6b2f8..bff60b48a5d36a363218044e6115efbcb3659867 100644 (file)
@@ -105,11 +105,11 @@ void dmeventd_lvm2_exit(void)
        pthread_mutex_lock(&_register_mutex);
 
        if (!--_register_count) {
-               dm_pool_destroy(_mem_pool);
-               _mem_pool = NULL;
                lvm2_run(_lvm_handle, "_memlock_dec");
                lvm2_exit(_lvm_handle);
                _lvm_handle = NULL;
+               dm_pool_destroy(_mem_pool);
+               _mem_pool = NULL;
        }
 
        pthread_mutex_unlock(&_register_mutex);
This page took 0.064811 seconds and 5 git commands to generate.