From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 7 Oct 2008 13:26:31 +0200 From: Andi Kleen Subject: Re: [PATCH, RFC, v2] shmat: introduce flag SHM_MAP_HINT Message-ID: <20081007112631.GH20740@one.firstfloor.org> References: <20081006192923.GJ3180@one.firstfloor.org> <1223362670-5187-1-git-send-email-kirill@shutemov.name> <20081007082030.GD20740@one.firstfloor.org> <20081007100854.GA5039@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081007100854.GA5039@localhost.localdomain> Sender: owner-linux-mm@kvack.org Return-Path: To: "Kirill A. Shutemov" Cc: Andi Kleen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Ingo Molnar , Arjan van de Ven , Andrew Morton List-ID: > I want say that we shouldn't do this check if shmaddr is a search hint. > I'm not sure that check is unneeded if shmadd is the exact address. mmap should fail in this case because it does the same check for MAP_FIXED. Obviously it cannot succeed when there is already something else there. -Andi -- ak@linux.intel.com -- 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