Received: by 10.192.165.148 with SMTP id m20csp4863899imm; Tue, 24 Apr 2018 09:34:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/nNyzy79KPrXkGOJnDUM5A1nmcj42WTbA05qsYBExL4BJWKrL8tYMTB/P+tHfjpQ5aG7tU X-Received: by 10.101.100.16 with SMTP id a16mr19505261pgv.75.1524587668134; Tue, 24 Apr 2018 09:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524587668; cv=none; d=google.com; s=arc-20160816; b=Kh5JRNN8a8ufPYPw1ffqAy97wfT1TaYt7obsetTAJIzYFkqe4v9SWfai/13BfYEzPA rbqdV2d8BBqGYrT8id3FiiFC9J7wkYBFNTpRL3OenXWsbRsmZ77opKSejrmEaJhHIxI7 xGkHdOqe0IAx8SA/T3Ukf368+pR/LSDFkFSz4dWcJaxZlkNgeyL/MFuBHDQBu4nvqwQr UlyVFMZkDP70KAluvNdND4p9IB2Q6F7rjjkJYhwc/19q7y7iHzmnidbK2+qnWNXlFVHj LZ8Ok2LeC+VjAilnXxiDYI53a9krV/2XXhXn8flYbTAo7nAPyou/5FL3PT+P9wCHV4on 8PFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=DA9jnNoTOcFZeIW3uzGI8tX4w1NjQDI5LCCZpDFl7Q0=; b=GxoPIzN0cIMF7RlImcj0jvP3PbUifqP7/VnPPS/iKtpeJd5UlxZnmDzoYheXzsbDwz QaZNmKYwdM3KhNgq8njil9pqUzwkQNBYbVcBOScZILWhZjdOI6/AXNKsdjorMmUcP3yx fmKhquQwU0iQ4mPIgUJvxjqYBQfM+YheNyoFcbSiM4zObbc7+31OX+Uo3zUMSyk0IBU3 AXmYK5/yirix+TyKEN3eMoEuyNNeBXTjb0IjGpYaj5gsdn87JUESyX9v0VRd+AO5aA8P iyjPCA52feBveDYEj4zfMZkYxhYUhDpoKRirKD9TlsSH4y5Dht++TjDbsrwNIjpxXHYN zqzw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h32-v6si13809467pld.170.2018.04.24.09.34.12; Tue, 24 Apr 2018 09:34:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbeDXQdF (ORCPT + 99 others); Tue, 24 Apr 2018 12:33:05 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41316 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750826AbeDXQdC (ORCPT ); Tue, 24 Apr 2018 12:33:02 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C358C8DC4F; Tue, 24 Apr 2018 16:33:01 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 93CD8215CDC8; Tue, 24 Apr 2018 16:33:01 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id w3OGX1V3024656; Tue, 24 Apr 2018 12:33:01 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w3OGX14q024652; Tue, 24 Apr 2018 12:33:01 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Tue, 24 Apr 2018 12:33:01 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Michal Hocko cc: Matthew Wilcox , David Miller , Andrew Morton , linux-mm@kvack.org, eric.dumazet@gmail.com, edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, dm-devel@redhat.com, Vlastimil Babka Subject: Re: [PATCH] kvmalloc: always use vmalloc if CONFIG_DEBUG_VM In-Reply-To: <20180424161242.GK17484@dhcp22.suse.cz> Message-ID: References: <20180420130852.GC16083@dhcp22.suse.cz> <20180420210200.GH10788@bombadil.infradead.org> <20180421144757.GC14610@bombadil.infradead.org> <20180423151545.GU17484@dhcp22.suse.cz> <20180424133146.GG17484@dhcp22.suse.cz> <20180424161242.GK17484@dhcp22.suse.cz> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 24 Apr 2018 16:33:01 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 24 Apr 2018 16:33:01 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mpatocka@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Apr 2018, Michal Hocko wrote: > On Tue 24-04-18 11:30:40, Mikulas Patocka wrote: > > > > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > > > On Mon 23-04-18 20:25:15, Mikulas Patocka wrote: > > > > > > > Fixing __vmalloc code > > > > is easy and it doesn't require cooperation with maintainers. > > > > > > But it is a hack against the intention of the scope api. > > > > It is not! > > This discussion simply doesn't make much sense it seems. The scope API > is to document the scope of the reclaim recursion critical section. That > certainly is not a utility function like vmalloc. That 15-line __vmalloc bugfix doesn't prevent you (or any other kernel developer) from converting the code to the scope API. You make nonsensical excuses. Mikulas