From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with SMTP id 1461C5F0001 for ; Tue, 7 Apr 2009 17:24:42 -0400 (EDT) Received: from localhost (smtp.ultrahosting.com [127.0.0.1]) by smtp.ultrahosting.com (Postfix) with ESMTP id E7D3382C230 for ; Tue, 7 Apr 2009 17:34:03 -0400 (EDT) Received: from smtp.ultrahosting.com ([74.213.174.254]) by localhost (smtp.ultrahosting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3BKnWuPSg0As for ; Tue, 7 Apr 2009 17:34:03 -0400 (EDT) Received: from qirst.com (unknown [74.213.171.31]) by smtp.ultrahosting.com (Postfix) with ESMTP id 573DF82C275 for ; Tue, 7 Apr 2009 17:33:54 -0400 (EDT) Date: Tue, 7 Apr 2009 17:19:19 -0400 (EDT) From: Christoph Lameter Subject: Re: [PATCH] [10/16] POISON: Use bitmask/action code for try_to_unmap behaviour In-Reply-To: <20090407151007.71F3F1D046F@basil.firstfloor.org> Message-ID: References: <20090407509.382219156@firstfloor.org> <20090407151007.71F3F1D046F@basil.firstfloor.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Andi Kleen Cc: Lee.Schermerhorn@hp.com, npiggin@suse.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org List-ID: On Tue, 7 Apr 2009, Andi Kleen wrote: > + > +enum ttu_flags { > + TTU_UNMAP = 0, /* unmap mode */ > + TTU_MIGRATION = 1, /* migration mode */ > + TTU_MUNLOCK = 2, /* munlock mode */ > + TTU_ACTION_MASK = 0xff, > + > + TTU_IGNORE_MLOCK = (1 << 8), /* ignore mlock */ Ignoring MLOCK? This means we are violating POSIX which says that an MLOCKed page cannot be unmapped from a process? Note that page migration does this under special pte entries so that the page will never appear to be unmapped to user space. How does that work for the poisoning case? We substitute a fresh page? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org