]> sourceware.org Git - lvm2.git/commit
Fix possible increasing in memory allocation if refreshing_context
authorMilan Broz <mbroz@redhat.com>
Thu, 5 Mar 2009 16:25:35 +0000 (16:25 +0000)
committerMilan Broz <mbroz@redhat.com>
Thu, 5 Mar 2009 16:25:35 +0000 (16:25 +0000)
commitfe3a28e2cc97a4b3f7347e2a8e63291ddb7a417f
treea8e77f4d8e5d59090a9f4353cb18b9086a35f7c1
parentab5be5f0658c0af362c5a105907fd118171ccf9a
Fix possible increasing in memory allocation if refreshing_context
(for example when CLVMD_CMD_LOCK_VG for is called during vgscan).

If clvmd calls LV lock, it calls
    /* clean the pool for another command */
dm_pool_empty(cmd->mem);
to clean up memory pool after command.

Unfortunately, do_refresh_cache() do not call this
and because during it operation it allocates some memory,
the pool increases.

Also do_refresh_cache should use lvm_lock
(it manipulates with lvm internal data).

The same applies for lvm_backup command.

Signed-off-by: Milan Broz <mbroz@redhat.com>
WHATS_NEW
daemons/clvmd/lvm-functions.c
This page took 0.026759 seconds and 5 git commands to generate.