All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Add memory pool for format instance and fix memory leaks
@ 2011-03-09 12:22 Peter Rajnoha
  2011-03-09 12:22 ` [PATCH 1/7] Add memory pool and reference counting for format instances Peter Rajnoha
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Peter Rajnoha @ 2011-03-09 12:22 UTC (permalink / raw)
  To: lvm-devel

This patchset fixes memory leaks introduced with changes in format instance handling.

Now, the format instances have their own memory pool with reference counting
(since the instances could be shared). This makes the memory handling much
controllable and it uses memory in a more optimal way (long living cmd context
mempool was used before and we couldn't free the memory from unused format
instances).

Peter Rajnoha (7):
  Add memory pool and reference counting for format instances.
  Move text_context allocation inside create_instance fn.
  Use vg_set_fid and new pv_set_fid throughout.
  Add new free_pv_fid fn and use it throughout.
  Call destroy_instance for all PVs in a VG while calling free_vg.
  Various cleanups for fid mem and ref_count changes.
  Switch over to format instance mempool use where possible.

 lib/cache/lvmcache.c             |   19 ++--
 lib/format1/format1.c            |   17 +++-
 lib/format_pool/format_pool.c    |   15 ++-
 lib/format_text/archive.c        |    8 +-
 lib/format_text/archiver.c       |   19 +++-
 lib/format_text/format-text.c    |  143 +++++++++++++--------------
 lib/format_text/format-text.h    |    7 +-
 lib/format_text/import_vsn1.c    |    8 +-
 lib/metadata/metadata-exported.h |   11 ++
 lib/metadata/metadata.c          |  204 +++++++++++++++++++++++++++++---------
 lib/metadata/metadata.h          |    1 +
 lib/metadata/mirror.c            |    6 +-
 tools/lvconvert.c                |    1 +
 tools/pvcreate.c                 |    4 +-
 tools/pvmove.c                   |    9 ++-
 tools/pvremove.c                 |   18 +++-
 tools/pvresize.c                 |    2 +
 tools/pvscan.c                   |    4 +-
 tools/toollib.c                  |   13 +++
 tools/vgconvert.c                |    3 +
 tools/vgreduce.c                 |    3 +
 21 files changed, 352 insertions(+), 163 deletions(-)

-- 
1.7.4



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-09 12:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 12:22 [PATCH 0/7] Add memory pool for format instance and fix memory leaks Peter Rajnoha
2011-03-09 12:22 ` [PATCH 1/7] Add memory pool and reference counting for format instances Peter Rajnoha
2011-03-09 12:22 ` [PATCH 2/7] Move text_context allocation inside create_instance fn Peter Rajnoha
2011-03-09 12:22 ` [PATCH 3/7] Use vg_set_fid and new pv_set_fid throughout Peter Rajnoha
2011-03-09 12:22 ` [PATCH 4/7] Add new free_pv_fid fn and use it throughout Peter Rajnoha
2011-03-09 12:22 ` [PATCH 5/7] Call destroy_instance for all PVs in a VG while calling free_vg Peter Rajnoha
2011-03-09 12:22 ` [PATCH 6/7] Various cleanups for fid mem and ref_count changes Peter Rajnoha
2011-03-09 12:22 ` [PATCH 7/7] Switch over to format instance mempool use where possible Peter Rajnoha
2011-03-09 12:40 ` [PATCH 0/7] Add memory pool for format instance and fix memory leaks Peter Rajnoha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.