Received: by 10.192.165.148 with SMTP id m20csp4023463imm; Mon, 23 Apr 2018 17:26:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx48laphhc24hs5C/RBAH3yabtHRXZvITNbEH1niEWUV7Q9o1Vfv3qInO4fT3NGh4djcgmvW5 X-Received: by 10.99.121.69 with SMTP id u66mr10162577pgc.376.1524529603746; Mon, 23 Apr 2018 17:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524529603; cv=none; d=google.com; s=arc-20160816; b=0ki3n+wbEhr7L1M6Osbs7VVg6Y8a5bnSV+VYwlQIbJnPL6kBGSgpZelEKTvi4k66vG mtcncKnYSZza8EWXX4y/KkFGhwzyTjod/ZXS+v5qSN5Flcfwlmny7eg4geL4tBr6MO44 V1C99IKm3IF7NqJAT2Vbn1oDjoTDjUTE8Z3rYldBVuEi99rQqvjqlH3QBNYkH6qpYXu2 FpJZW21dh51MiAKixXH76o2WiYh/52QNk+3QczJ4Hvv6jqWDs+bIk5FwTnrnhd3fZlum pooGPi4crVnRfblPYbOW3QaF/gzM7qxG3UuONF/8BKdwakJ8hFg54L5/+6471IqOCy7V W1wQ== 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=MtMCKMnJInFeP7PhWKyRpJAmV5JfloG01vNPgNZUVYE=; b=hIEyM4p91HEHaPKuD8tfEWaXoWpC1Rh51ceVexQcZd+GjARNnn2lL5k/m3Rw1Njhxg c1bQpJnL8/Chj5H5+B3U08RxTTu34blknwZ8YrUVmJlforW6N0VuwdwvWrlHA2W5K9+2 VQXlyE9FkKP2/S+eM3G71QIMDvKJNOfRoX76dsD45g2qB4Cdqel5XXTinxjgLD1sNKJl PxZIi4iuIYo6uORz65/hq+HTusfmkeVTFwvpgsRkhQKNrRRluvd8ZAzvUirO0iU3FDp4 Fh7polbPCetBUGxlLvhVX72M7CLfwh5ZuJe8LNww1hXdiqGwVJSZechwlhfBGLnYh6BD Hn3A== 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 k25si10595075pgf.581.2018.04.23.17.26.29; Mon, 23 Apr 2018 17:26:43 -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 S932677AbeDXAZY (ORCPT + 99 others); Mon, 23 Apr 2018 20:25:24 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:48290 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932574AbeDXAZU (ORCPT ); Mon, 23 Apr 2018 20:25:20 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 219A11A84A; Tue, 24 Apr 2018 00:25:20 +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 047F67C51; Tue, 24 Apr 2018 00:25:16 +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 w3O0PFah012588; Mon, 23 Apr 2018 20:25:15 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w3O0PFNQ012584; Mon, 23 Apr 2018 20:25:15 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Mon, 23 Apr 2018 20:25:15 -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: <20180423151545.GU17484@dhcp22.suse.cz> Message-ID: References: <20180418.134651.2225112489265654270.davem@davemloft.net> <20180420130852.GC16083@dhcp22.suse.cz> <20180420210200.GH10788@bombadil.infradead.org> <20180421144757.GC14610@bombadil.infradead.org> <20180423151545.GU17484@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.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 24 Apr 2018 00:25:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 24 Apr 2018 00:25:20 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.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 Mon, 23 Apr 2018, Michal Hocko wrote: > On Mon 23-04-18 10:06:08, Mikulas Patocka wrote: > > > > > He didn't want to fix vmalloc(GFP_NOIO) > > > > > > I don't remember that conversation, so I don't know whether I agree with > > > his reasoning or not. But we are supposed to be moving away from GFP_NOIO > > > towards marking regions with memalloc_noio_save() / restore. If you do > > > that, you won't need vmalloc(GFP_NOIO). > > > > He said the same thing a year ago. And there was small progress. 6 out of > > 27 __vmalloc calls were converted to memalloc_noio_save in a year - 5 in > > infiniband and 1 in btrfs. (the whole discussion is here > > http://lkml.iu.edu/hypermail/linux/kernel/1706.3/04681.html ) > > Well this is not that easy. It requires a cooperation from maintainers. > I can only do as much. I've posted patches in the past and actively > bringing up this topic at LSFMM last two years... You're right - but you have chosen the uneasy path. Fixing __vmalloc code is easy and it doesn't require cooperation with maintainers. > > He refuses 15-line patch to fix GFP_NOIO bug because he believes that in 4 > > years, the kernel will be refactored and GFP_NOIO will be eliminated. Why > > does he have veto over this part of the code? I'd much rather argue with > > people who have constructive comments about fixing bugs than with him. > > I didn't NACK the patch AFAIR. I've said it is not a good idea longterm. > I would be much more willing to change my mind if you would back your > patch by a real bug report. Hacks are acceptable when we have a real > issue in hands. But if we want to fix potential issue then better make > it properly. Developers should fix bugs in advance, not to wait until a crash hapens, is analyzed and reported. What's the problem with 15-line hack? Is the problem that kernel developers would feel depressed when looking the source code? Other than harming developers' feelings, I don't see what kind of damange could that piece of code do. Mikulas