master - memlock: ignore more libraries
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=bd3e44643de16ba0171af05413626a55a0a51b42 Commit: bd3e44643de16ba0171af05413626a55a0a51b42 Parent: 84ff3ae703ec7d2859398f01eee726134c543723 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Apr 10 10:52:44 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Apr 14 12:53:07 2014 +0200
memlock: ignore more libraries
Extend the list of ignored libraries. Since we do not use those libraries during suspend, skip their locking.
--- WHATS_NEW | 1 + lib/mm/memlock.c | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.107 - ================================== + Skip more libraries to be mlocked in memory. Remove LOCKED flag for pvmove replaced with error target. Return invalid command when specifying negative polling interval.
lib/mm/memlock.c +7 -1
@@ -92,9 +92,15 @@ static const char * const _blacklist_maps[] = {"locale/locale-archive" ,"/LC_MESSAGES/" ,"gconv/gconv-modules.cache" , -"/libreadline.so." ,/* not using readline during mlock */ +"/libblkid.so." ,/* not using lzma during mlock (selinux) */ +"/liblzma.so." ,/* not using lzma during mlock (selinux) */ "/libncurses.so." ,/* not using ncurses during mlock */ +"/libpcre.so." ,/* not using pcre during mlock (selinux) */ +"/libreadline.so." ,/* not using readline during mlock */ +"/libselinux.so." ,/* not using selinux during mlock */ +"/libsepol.so." ,/* not using sepol during mlock */ "/libtinfo.so." ,/* not using tinfo during mlock */ +"/libuuid.so." ,/* not using uuid during mlock (blkid) */ "/libdl-", /* not using dlopen,dlsym during mlock */ /* "/libdevmapper-event.so" */ };