From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH 0/7] dmevent mlockall() fixes
Date: Mon, 29 Mar 2010 17:27:18 +0200 [thread overview]
Message-ID: <cover.1269876115.git.zkabelac@redhat.com> (raw)
This patch set tries to fix dmeventd.
Dmeventd got actually broken with our new mlock() code.
There is no big chance to make current architecture with threads usable
with mlock() code - so mlockall() is used for daemon case.
Snapshot plugin current doesn't use cmd_context and doesn't need memory
locking.
Mirror plugin uses memlock_inc_daemon() and locks while binary to memory.
C locales are enforced to avoid loading of 100MB locale-archive file.
Few minor fixes for syslog message and resource leaks in error path.
Statistic for mlock() could be based on readable sizes.
Zdenek Kabelac (7):
Remove mlockall() form dmeventd
Fix resouces leak in error path
Release pool in the same reversed order
Updated syslog messages
Force C locale
Update memlock
Count only readable size for memlock stats.
daemons/dmeventd/dmeventd.c | 14 ++---
daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c | 4 +-
daemons/dmeventd/plugins/mirror/dmeventd_mirror.c | 28 +++++-----
lib/mm/memlock.c | 64 ++++++++++-----------
4 files changed, 51 insertions(+), 59 deletions(-)
next reply other threads:[~2010-03-29 15:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 15:27 Zdenek Kabelac [this message]
2010-03-29 15:27 ` [PATCH 1/7] Remove mlockall() form dmeventd Zdenek Kabelac
2010-03-29 15:27 ` [PATCH 2/7] Fix resouces leak in error path Zdenek Kabelac
2010-03-29 15:27 ` [PATCH 3/7] Release pool in the same reversed order Zdenek Kabelac
2010-03-29 15:27 ` [PATCH 4/7] Updated syslog messages Zdenek Kabelac
2010-03-29 15:27 ` [PATCH 5/7] Force C locale Zdenek Kabelac
2010-03-29 15:27 ` [PATCH 6/7] Update memlock Zdenek Kabelac
2010-03-29 15:27 ` [PATCH 7/7] Count only readable size for memlock stats Zdenek Kabelac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1269876115.git.zkabelac@redhat.com \
--to=zkabelac@redhat.com \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.