From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751203AbbCSUDZ (ORCPT ); Thu, 19 Mar 2015 16:03:25 -0400 Received: from mta-out1.inet.fi ([62.71.2.203]:52057 "EHLO jenni2.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899AbbCSUDX (ORCPT ); Thu, 19 Mar 2015 16:03:23 -0400 Date: Thu, 19 Mar 2015 22:02:52 +0200 From: "Kirill A. Shutemov" To: Dave Hansen , Hugh Dickins Cc: "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , Mel Gorman , Rik van Riel , Vlastimil Babka , Christoph Lameter , Naoya Horiguchi , Steve Capper , "Aneesh Kumar K.V" , Johannes Weiner , Michal Hocko , Jerome Marchand , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Subject: Re: [PATCH 05/16] page-flags: define behavior of FS/IO-related flags on compound pages Message-ID: <20150319200252.GA13348@node.dhcp.inet.fi> References: <1426784902-125149-1-git-send-email-kirill.shutemov@linux.intel.com> <1426784902-125149-6-git-send-email-kirill.shutemov@linux.intel.com> <550B15A0.9090308@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <550B15A0.9090308@intel.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 19, 2015 at 11:29:52AM -0700, Dave Hansen wrote: > On 03/19/2015 10:08 AM, Kirill A. Shutemov wrote: > > The odd exception is PG_dirty: sound uses compound pages and maps them > > with PTEs. NO_COMPOUND triggers VM_BUG_ON() in set_page_dirty() on > > handling shared fault. Let's use HEAD for PG_dirty. > > Can we get the sound guys to look at this, btw? It seems like an odd > thing that we probably don't want to keep around, right? CC: +sound guys I'm not sure what is right fix here. At the time adding __GFP_COMP was a fix: see f3d48f0373c1. Other odd part about __GFP_COMP here is that we have ->_mapcount in tail pages to be used for both: mapcount of the individual page and for gup pins. __compound_tail_refcounted() doesn't recognize that we don't need tail page accounting for these pages. Hugh, I tried to ask you about the situation several times (last time on the summit). Any comments? -- Kirill A. Shutemov