From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755458AbbKRJW1 (ORCPT ); Wed, 18 Nov 2015 04:22:27 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34034 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbbKRJWW (ORCPT ); Wed, 18 Nov 2015 04:22:22 -0500 Date: Wed, 18 Nov 2015 10:22:20 +0100 From: Michal Hocko To: Tetsuo Handa Cc: Andrew Morton , Mel Gorman , David Rientjes , linux-mm@kvack.org, LKML Subject: Re: [PATCH 2/2] mm: do not loop over ALLOC_NO_WATERMARKS without triggering reclaim Message-ID: <20151118092220.GC19145@dhcp22.suse.cz> References: <1447680139-16484-1-git-send-email-mhocko@kernel.org> <1447680139-16484-3-git-send-email-mhocko@kernel.org> <564B0841.6030409@I-love.SAKURA.ne.jp> <20151118091101.GA19145@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151118091101.GA19145@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 18-11-15 10:11:01, Michal Hocko wrote: > Besides that I fail to see why a work item would ever > want to set PF_MEMALLOC for legitimate reasons. I have done a quick git > grep over the tree and there doesn't seem to be any user. OK, I have missed one case. xfs_btree_split_worker is really setting PF_MEMALLOC from the worker context basically to inherit the flag from kswapd. This is a legitimate use but it doesn't affect the allocation path so it is not related to this discussion. -- Michal Hocko SUSE Labs