]> sourceware.org Git - lvm2.git/commit
activation: use cmd pending mem for pending_delete
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 27 Aug 2019 10:18:47 +0000 (12:18 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 27 Aug 2019 13:54:42 +0000 (15:54 +0200)
commitb2885b7103049b11ca3e98fe0c8898df2ce5f9ac
treec15d57829f2d927ff178146f3abb49697c8c06cf
parentaefd177b047eb548e63ac94c9eb442604175d3bc
activation: use cmd pending mem for pending_delete

Since we need to preserve allocated strings across 2 separate
activation calls of '_tree_action()' we need to use other mem
pool them dm->mem - but since cmd->mem is released between
individual lvm2 locking calls, we rather introduce a new separate
mem pool just for pending deletes with easy to see life-span.
(not using 'libmem' as it would basicaly keep allocations over
the whole lifetime of clvmd)

This patch is fixing previous commmit where the memory was
improperly used after pool release.
lib/activate/dev_manager.c
lib/commands/toolcontext.c
lib/commands/toolcontext.h
This page took 0.069316 seconds and 5 git commands to generate.