]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdmon.c
mdmon: lock current memory as well as future memory.
authorNeilBrown <neilb@suse.de>
Mon, 19 Oct 2009 02:04:16 +0000 (13:04 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 19 Oct 2009 02:04:16 +0000 (13:04 +1100)
commit1373b07d758213b643f72a09384b840e4f08057a
tree82197ed4c0c52ccec251352ec4e675f642cc1be9
parent5d504f42782ced8af5438ebc455b084275c86eec
mdmon: lock current memory as well as future memory.

mlockall(MCL_FUTURE) only locks mappings that have not yet
been created.  To lock all memory used by the process, we need
 MCL_CURRENT | MCL_FUTURE

Signed-off-by: NeilBrown <neilb@suse.de>
mdmon.c