Received: by 10.192.165.148 with SMTP id m20csp13909imm; Tue, 24 Apr 2018 16:11:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx49eotXwB72Ta3dvc4Rb85Z/OAIGiWwcXh5KcGejMqaqfAjjJrHz8bYmWHmwf2L95qr5pGjh X-Received: by 2002:a17:902:30f:: with SMTP id 15-v6mr26774163pld.365.1524611495855; Tue, 24 Apr 2018 16:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524611495; cv=none; d=google.com; s=arc-20160816; b=i7gUFPGO1fY3pRL7/BycezR3yzFvfmarWZM+C8fUNpRKoQyiYgz/SG/p0b2T56gDeh MlH++iEjkmvcKSS4L1B1QqLWhBXczLiVzdzWdAbO0dO4tEyJAR+MJNyw9vhI/zLTgxS7 62KoipnaFqEV96hMX2+KF5f27ytvIXgJdAujHEk50racWT3VhNdvnGblUX7tScg2DISp AnPpXf1Jekdn3z0XHxlq1C3/Hbsn/xDaKdlCze9a3ILc0/2GHjK8A3STT4Sin+hTJfl0 39TnuzXaUNS0Mo0GXOcnnvil7Gyl1n4EI2rUrgKx+xl9z5Gf5Rj6FWaBIoHXYgednh43 plTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=QI0MF9t7zZTaW5VRL8xwcHqQHXIKFo+E9TLotuKFWZU=; b=nXU3mdzVYliMLWWe0ftg2UX2VjkGh+EcpRK8sMDcx9QtgWSlvhZNO/3UMIbwhaIPH2 lxkYjltpSKUqPROQG1xZeYowpWcwHkDRr9F/EzECv2Es1YpqOCT5Tml2Y6BvmPGhmmhi KxPASEdqjpMD6Hpi8/Alr0C5pOirudZbBcYyFhncMJ6oMe3ulVf8bBMUNq2usGnJofcN GPaai3CY6zPblqpvz++H9eByYmSi83bssoBonXkzKGRq6KXFYZqa421xEAalHX74t05D tMfesAyLVrN8BAmNTBy8rgnKBtlwR1jDKP00W0l9zKspmLvViHctxJCMpuJyoWKpeouf nQ7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k124si12290675pgk.424.2018.04.24.16.11.18; Tue, 24 Apr 2018 16:11:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751283AbeDXXJz (ORCPT + 99 others); Tue, 24 Apr 2018 19:09:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:35823 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbeDXXJv (ORCPT ); Tue, 24 Apr 2018 19:09:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9061BAD65; Tue, 24 Apr 2018 23:09:49 +0000 (UTC) Date: Tue, 24 Apr 2018 17:09:43 -0600 From: Michal Hocko To: Richard Weinberger Cc: LKML , Artem Bityutskiy , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Cyrille Pitchen , Theodore Ts'o , Andreas Dilger , Steven Whitehouse , Bob Peterson , Trond Myklebust , Anna Schumaker , Adrian Hunter , Philippe Ombredanne , Kate Stewart , Mikulas Patocka , linux-mtd@lists.infradead.org, linux-ext4@vger.kernel.org, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, linux-mm@kvack.org Subject: Re: vmalloc with GFP_NOFS Message-ID: <20180424230943.GY17484@dhcp22.suse.cz> References: <20180424162712.GL17484@dhcp22.suse.cz> <3732370.1623zxSvNg@blindfold> <20180424192803.GT17484@dhcp22.suse.cz> <3894056.cxOY6eVYVp@blindfold> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3894056.cxOY6eVYVp@blindfold> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 25-04-18 00:18:40, Richard Weinberger wrote: > Am Dienstag, 24. April 2018, 21:28:03 CEST schrieb Michal Hocko: > > > Also only for debugging. > > > Getting rid of vmalloc with GFP_NOFS in UBIFS is no big problem. > > > I can prepare a patch. > > > > Cool! > > > > Anyway, if UBIFS has some reclaim recursion critical sections in general > > it would be really great to have them documented and that is where the > > scope api is really handy. Just add the scope and document what is the > > recursion issue. This will help people reading the code as well. Ideally > > there shouldn't be any explicit GFP_NOFS in the code. > > So in a perfect world a filesystem calls memalloc_nofs_save/restore and > always uses GFP_KERNEL for kmalloc/vmalloc? Exactly! And in a dream world those memalloc_nofs_save act as a documentation of the reclaim recursion documentation ;) -- Michal Hocko SUSE Labs