Received: by 10.192.165.148 with SMTP id m20csp5178843imm; Tue, 24 Apr 2018 15:20:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+5KWIbx43tnz6hnDybkt9oUfsrjNmwgKGQG6QmfvCTv9TR4rtN/0uExAkFtFD7KR6lt+ky X-Received: by 10.98.61.84 with SMTP id k81mr25502793pfa.193.1524608423455; Tue, 24 Apr 2018 15:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524608423; cv=none; d=google.com; s=arc-20160816; b=K9s1Dt9jQ9X1kxezH+Pfaj/s6Uy4BNhVJ2y5+rY4K7hoq/SZOWxoVNDNHEkSZIAZJp oPcbHHpxgMJOG0EyjI4WGMnAjfF8BSDysypppyyw9XwOx6OvTu8dw65aoojwBV9WXqWR L9WoFQPmVJ6BbLxIIItv6w1kUBpmOPe4DbXeHdJJe1SURfL8UeQzsX5tgQOvK1WFrWmn AftWfhoB6MitzWOAkD4/FRShM5dvwZBzDFz6AnFJkC3OEMR3AQGGM20h/ay4BKaUUd6C a3U+5LOgzW/gentIjgz9vx4QGX0amFunIkRVJZs5ZoAQ0bG1w34/rft1vGJsKO4fpwzt nlnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=q4nX9q/2h157xtbQ8O5w3Cp28nuzXnVDKs+AZdfOBKE=; b=eZgPzPN3myZOdodMoMPtHtvsN5vDjNis+DU6rTEs8UzLM0i96+MrOWiEk45NdsNu0t VhEvmzDTcpKWo1LUq4m3pnZEKwUP/Qe1mgaKHD7KN/KCV9pioy/qw2fyFR/aLjkb1Pl3 XKm5wrMYkqOPzvk4LgexR8gOelnyiOxoL7z4J9c+EGZN9xLFbxkPZSUU2BtuttP58c21 /bsqB0XGEJJIXC7S1QnoDG5uZYVcZT9rohZXQJ7AV0lU3c2n8PKAlTS5vBgXdxkv+kdN sabcoSot3oH50c8sw2HLU6C8/DXxQTwZ10s98TxpHiFJRj1iSKjOcIjY2FP+VjrbEowC G8Zg== 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 m7si2210624pfh.92.2018.04.24.15.20.08; Tue, 24 Apr 2018 15:20:23 -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 S1751097AbeDXWSw (ORCPT + 99 others); Tue, 24 Apr 2018 18:18:52 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:42754 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbeDXWSt (ORCPT ); Tue, 24 Apr 2018 18:18:49 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 5E219608D737; Wed, 25 Apr 2018 00:18:47 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xDPJOIgFkcIB; Wed, 25 Apr 2018 00:18:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 000FB608D742; Wed, 25 Apr 2018 00:18:46 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kPP7RUWsxwKg; Wed, 25 Apr 2018 00:18:46 +0200 (CEST) Received: from blindfold.localnet (213-47-184-186.cable.dynamic.surfer.at [213.47.184.186]) by lithops.sigma-star.at (Postfix) with ESMTPSA id C32D4608D737; Wed, 25 Apr 2018 00:18:46 +0200 (CEST) From: Richard Weinberger To: Michal Hocko 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 Date: Wed, 25 Apr 2018 00:18:40 +0200 Message-ID: <3894056.cxOY6eVYVp@blindfold> In-Reply-To: <20180424192803.GT17484@dhcp22.suse.cz> References: <20180424162712.GL17484@dhcp22.suse.cz> <3732370.1623zxSvNg@blindfold> <20180424192803.GT17484@dhcp22.suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, //richard