Received: by 10.223.176.5 with SMTP id f5csp868220wra; Wed, 7 Feb 2018 08:48:02 -0800 (PST) X-Google-Smtp-Source: AH8x224nLKtUjR5ZJOo5IEZfbB1CHsolqYDFOyWWwDacIv1IR7jUI9V24dFkyJeBrX2Clft/fha6 X-Received: by 10.101.69.13 with SMTP id n13mr5468929pgq.62.1518022082060; Wed, 07 Feb 2018 08:48:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518022082; cv=none; d=google.com; s=arc-20160816; b=WxxVZi5iu2eBTXuwo381euLdvraZAs6YYHPpxCjbKJvn5Fc/WsZm5pPZNTQ3YmVj7r bLhjN/JmqqKiSgQ+G/hvo7z5YupAamUm5LRDQRfAshB1MxlOTpG4ks0GoLPh6wAwk/Wl tyKsASxT+TzTKNbcef3Ir/Kn9YxqJC9k3fcuMF9vy3U8YlfjV6vVXjCkrqpuyR/W3IKH JEWw/4P25lds7r/ymRhsD9iCnuMLsRskqZk/OxHpsEHOpCv5/r5p6QD9RyOxg03k4kkP mLjw90UaCTqtyxuH1baUbwHhu7PxnfJQFdlMalK2ffM+lOie3op2at9TwcO91v6hLiaP /xag== 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=pRqm67uIPkpjNSdlN1eWkw4S7OsVXstunBmNTDwsong=; b=Hbi1qUPLAD9dutS+ymCP5qgr53S7zDq5tmpMNnYbej7wGbEyFe6ZC2T7jNZa6mnLkC /OjR1Sf9nuYGMF4Gb3wFbZqUCeI70iQvyddm7mFTVMjUC0y9cUitRUY3v8pvgZOvUo7g GahRvbtgW8lyzVrUkgIr+QAAPmvj0UIGAARNBzE7T4AjdfO9ukRoDv1Gx2HHkuu4a7Ji 4e5trAlV7W3gj+MxdWUyrfHtnXM4cqBPwI13THH0fe55dHpU6PY7F8NMKzby8r45eT7X JhAs1i7nLAk/onWugalZjdxTJxEyr10shJdZKE5QPk/gR7r7692/m9sCUwmkUxHpOUsH 5mqw== 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 a92-v6si1312078pla.543.2018.02.07.08.47.47; Wed, 07 Feb 2018 08:48:02 -0800 (PST) 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 S1754696AbeBGQrH (ORCPT + 99 others); Wed, 7 Feb 2018 11:47:07 -0500 Received: from resqmta-ch2-08v.sys.comcast.net ([69.252.207.40]:60038 "EHLO resqmta-ch2-08v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754490AbeBGQrG (ORCPT ); Wed, 7 Feb 2018 11:47:06 -0500 Received: from resomta-ch2-16v.sys.comcast.net ([69.252.207.112]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id jSjvejYYwvd8rjSsDeWOAX; Wed, 07 Feb 2018 16:47:05 +0000 Received: from gentwo.org ([98.222.162.64]) by resomta-ch2-16v.sys.comcast.net with SMTP id jSsBeapUyDlU5jSsBeVQ9I; Wed, 07 Feb 2018 16:47:05 +0000 Received: by gentwo.org (Postfix, from userid 1001) id E38251161663; Wed, 7 Feb 2018 10:47:02 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id E00E4116165A; Wed, 7 Feb 2018 10:47:02 -0600 (CST) Date: Wed, 7 Feb 2018 10:47:02 -0600 (CST) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Matthew Wilcox cc: "Paul E. McKenney" , Kirill Tkhai , josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, mingo@redhat.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, brouer@redhat.com, rao.shoaib@oracle.com Subject: Re: [PATCH 0/2] rcu: Transform kfree_rcu() into kvfree_rcu() In-Reply-To: <20180207042334.GA16175@bombadil.infradead.org> Message-ID: References: <151791170164.5994.8253310844733420079.stgit@localhost.localdomain> <20180207021703.GC3617@linux.vnet.ibm.com> <20180207042334.GA16175@bombadil.infradead.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfHGw4Hvcp66gHBR1iIk5FV5wgIHfe9u53KpyriSGpy1EIkkf4TKuO2e4f+5ONwLIJhnw6Jf/ryLIp359IwuLpuwr/McjMuXl9LyTFEhI4+lMCF7ZmMqT IJOsCv18BZGE1QnNblzvw0KfT/8JDnsp6OojkOJvm8eKsx6xXYjHdYnf0tRrDrqyWq1NoFzumYC2Aab4z1pmXpd6DUYQSQWOBw5bZl5Iy1P7SaDgkuVFw2Qu 1Axr7B+iunfD0H0jbVS65JvT1Xo5IaXNGShaWExl5+nvZuYB0ftPBWlRwHf3mxDviTpXmMuGjlosFhe9H0ljB58ksvf4di+WSmKb5L1O2Aw2DWYoCiXrDgwf jZ2PjZWRNKFVDMIEvYKYcR4eBrWgCp+O5q8Teki+DOzaEwJKN8Hcu6TlAKw4sHd7DzJQb4vVIBBv5XDhl2unFvP0ZW2FqNXE+WsUhfhRFCLb4ka4rpmC/bUr W/crs4YRIgvSCp0L/9arkJv3rRMpPfwYuXA/k+TFqarNtA5VNfA8A0eMbbLlfcW6iuB9n1kE4moZIfjcvsNZ9ZICHQ3hHafDOCrlis5UccojcGn1WgpiPgdB VL5eYvBPe6+akpl2cKqP3UEHUdMHwtVEh0A0NKtDkIYSIJJ3EW5eUcV+1riVh2TimX87/pynRXtiVRnpCACF8dCf Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 6 Feb 2018, Matthew Wilcox wrote: > Personally, I would like us to rename kvfree() to just free(), and have > malloc(x) be an alias to kvmalloc(x, GFP_KERNEL), but I haven't won that > fight yet. Maybe lets implement malloc(), free() and realloc() in the kernel to be consistent with user space use as possible? Only use the others allocation variants for special cases. So malloc would check allocation sizes and if < 2* PAGE_SIZE use kmalloc() otherwise vmalloc(). free() would free anything you give it.