From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with ESMTP id 1173C6B01EF for ; Mon, 29 Mar 2010 14:49:54 -0400 (EDT) Received: from e35131.upc-e.chello.nl ([213.93.35.131] helo=dyad.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.69 #1 (Red Hat Linux)) id 1NwK23-0004Tz-9g for linux-mm@kvack.org; Mon, 29 Mar 2010 18:49:51 +0000 Subject: Re: [PATCH 36 of 41] remove PG_buddy From: Peter Zijlstra In-Reply-To: <27d13ddf7c8f7ca03652.1269887869@v2.random> References: <27d13ddf7c8f7ca03652.1269887869@v2.random> Content-Type: text/plain; charset="UTF-8" Date: Mon, 29 Mar 2010 20:49:44 +0200 Message-ID: <1269888584.12097.371.camel@laptop> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Andrea Arcangeli Cc: linux-mm@kvack.org, Andrew Morton , Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Mel Gorman , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , bpicco@redhat.com, KOSAKI Motohiro , Balbir Singh , Arnd Bergmann , "Michael S. Tsirkin" , Johannes Weiner , Daisuke Nishimura List-ID: On Mon, 2010-03-29 at 20:37 +0200, Andrea Arcangeli wrote: > From: Andrea Arcangeli > > PG_buddy can be converted to page->_count == -1. So the PG_compound_lock can be > added to page->flags without overflowing (because of the section bits > increasing) with CONFIG_X86_PAE=y. This seems to break the assumption that all free pages have a zero page count relied upon by things like page_cache_get_speculative(). What if a page-cache pages gets freed and used as a head in the buddy list while a concurrent lockless page-cache lookup tries to get a page ref? -- 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