Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751786AbbFBUWu (ORCPT ); Tue, 2 Jun 2015 16:22:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45318 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbbFBUWn (ORCPT ); Tue, 2 Jun 2015 16:22:43 -0400 Date: Tue, 2 Jun 2015 13:22:41 -0700 From: Andrew Morton To: Michal Hocko Cc: , Dave Chinner , Neil Brown , Johannes Weiner , Al Viro , Mel Gorman , Rik van Riel , Tetsuo Handa , LKML , linux-fsdevel@vger.kernel.org Subject: Re: [RFC 0/2] mapping_gfp_mask from the page fault path Message-Id: <20150602132241.26fbbc98be71920da8485b73@linux-foundation.org> In-Reply-To: <1433163603-13229-1-git-send-email-mhocko@suse.cz> References: <1433163603-13229-1-git-send-email-mhocko@suse.cz> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 24 On Mon, 1 Jun 2015 15:00:01 +0200 Michal Hocko wrote: > I somehow forgot about these patches. The previous version was > posted here: http://marc.info/?l=linux-mm&m=142668784122763&w=2. The > first attempt was broken but even when fixed it seems like ignoring > mapping_gfp_mask in page_cache_read is too fragile because > filesystems might use locks in their filemap_fault handlers > which could trigger recursion problems as pointed out by Dave > http://marc.info/?l=linux-mm&m=142682332032293&w=2. > > The first patch should be straightforward fix to obey mapping_gfp_mask > when allocating for mapping. It can be applied even without the second > one. I'm not so sure about that. If only [1/2] is applied then those filesystems which are setting mapping_gfp_mask to GFP_NOFS will now actually start using GFP_NOFS from within page_cache_read() etc. The weaker allocation mode might cause problems. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/