All of lore.kernel.org
 help / color / mirror / Atom feed
From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW lib/mm/memlock.c
Date: 24 Jun 2010 08:29:34 -0000	[thread overview]
Message-ID: <20100624082934.5824.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2010-06-24 08:29:31

Modified files:
	.              : WHATS_NEW 
	lib/mm         : memlock.c 

Log message:
	Preload libc locale messages.
	
	Preload libc.mo file for localized lvm before taking memory lock - this way
	we prevent disk access for some error paths in libdm, that prints localized
	errno messages while they are still in memory locked state.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1634&r2=1.1635
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/mm/memlock.c.diff?cvsroot=lvm2&r1=1.26&r2=1.27

--- LVM2/WHATS_NEW	2010/06/23 21:01:42	1.1634
+++ LVM2/WHATS_NEW	2010/06/24 08:29:30	1.1635
@@ -1,5 +1,6 @@
 Version 2.02.69 - 
 ================================
+  Preload libc locale messages to prevent reading it in memory locked state.
   Fix handling of simultaneous mirror image and mirrored log image failure.
 
 Version 2.02.68 - 23rd June 2010
--- LVM2/lib/mm/memlock.c	2010/04/01 14:53:47	1.26
+++ LVM2/lib/mm/memlock.c	2010/06/24 08:29:31	1.27
@@ -216,6 +216,9 @@
 #endif
 	}
 
+	/* Force libc.mo load */
+	if (lock == LVM_MLOCK)
+		(void)strerror(0);
 	/* Reset statistic counters */
 	*mstats = 0;
 	rewind(_mapsh);



             reply	other threads:[~2010-06-24  8:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24  8:29 zkabelac [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-30 11:32 LVM2 ./WHATS_NEW lib/mm/memlock.c zkabelac
2011-03-06 16:47 mbroz
2011-03-30 13:06 zkabelac
2011-06-12  0:23 agk
2012-01-12 18:29 agk

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=20100624082934.5824.qmail@sourceware.org \
    --to=zkabelac@sourceware.org \
    --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.