Received: by 10.213.65.68 with SMTP id h4csp2023619imn; Sun, 1 Apr 2018 22:33:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Xt8JPCNvk//yFSWigntl6xX3us9ePLjTUpqtKGwkfqHgj1R3A6YD/SZU9dL7WhTGsGmCX X-Received: by 10.98.232.2 with SMTP id c2mr6405063pfi.187.1522647195223; Sun, 01 Apr 2018 22:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522647195; cv=none; d=google.com; s=arc-20160816; b=TonriZKV+4EU7ANqT4hXQLEzK+xK5j2ugxb8u+2t6H/MqgjZnmEahEp+aoT8aOOG8D l5u+7aypuCO1+xa4B6jSSl1WXxrrH6HTvskEL882DtL9rE/uI54V4GOHBOIWFHsiPW1D 3PGcvcKIsKdmclyrkNddw9unV5fdZt6N6+ObbeAH9iA0I16Eo+kybUyUzPs0v3G0JNfD 0f8Rc60UYXetueeyqWd713hc9YXbJFoJb/5htspl4iBBrC6gOkA7K+70B0SYXhmqe4cZ AKcXVrPJ4drGhzgNRyMj4DIxH4wmeBO4BSYhjvMlno6yPG+CV34P55M2lU/nI89Pn04C o+zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=sBcT4ispYW+csc2eiMrtITlKHC2oyvR8PkrwV+oebSM=; b=Y27sKNGFGgD6H77AN7Kcmjy9qg4HOgEZ/WCTdbJQi4qGONSeHo7OSkzg0lBnsQz+QT WIDOgXn68B6N2OWK1SwN68KDIkneHjBaONMpK89qbJVePr9G/dXfOOpEhvf21aDW/MWd sH0mwxNN8jVioNx8ir/2iBqpthjnWiqm+/4m4D13/dH1x+n1MSTxodApdPQFZgRP5IWg zLDLO7xApi4VtkGIWkryTXp2yx0TrAs9GKCHzS8Xkr33+nNMhkC+/PYHPU8/mEJWS1wI PZldOr38sHjk3iGPrLH1YuwYO/qOrW7l7xB/OtoSZanH+A5/XL6Z2Jk0M+aNrS6hIdw0 SF/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=E+OH/qh1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b89-v6si14045768plb.262.2018.04.01.22.33.01; Sun, 01 Apr 2018 22:33:15 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=E+OH/qh1; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751869AbeDBFbh (ORCPT + 99 others); Mon, 2 Apr 2018 01:31:37 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:54916 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751314AbeDBFbg (ORCPT ); Mon, 2 Apr 2018 01:31:36 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w325TexQ158323; Mon, 2 Apr 2018 05:31:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2017-10-26; bh=sBcT4ispYW+csc2eiMrtITlKHC2oyvR8PkrwV+oebSM=; b=E+OH/qh1cVPaeRMxzB0HIc+j+2dZc18GNfYXIqMuXMH+eNJAPyZZi5jXkildaztelR6q JETjZMI1YLSqsWmI8lwvm/sX4qK/4lJ6XBofqVhNZ33DGEEpLDJcMg9wSXr4AvGaq12c OGs+U4+DsifwgRLFUa+aTGanT7jXeRK9DD6bpVNjDa/+G7xTcWI0yNSOhpFfzHhFZcbY mGzuIqU2VmfJJKcgw2twHkF+dRu5xT7ja9sAKRGeovyAPs1JhtFLnoW1t9uJB+Ju4Fcm lZoWuA6+eQiWypBDazRReM9XLNy2arRcyRGoYmCY9BRno1HKhNj+ThT49INN+7leE2/6 Dg== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2h3ee0r05w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Apr 2018 05:31:12 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w325VBJg026040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 2 Apr 2018 05:31:11 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w325V8b4025009; Mon, 2 Apr 2018 05:31:09 GMT Received: from oracle.com (/67.188.214.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 01 Apr 2018 22:31:08 -0700 From: rao.shoaib@oracle.com To: linux-kernel@vger.kernel.org Cc: paulmck@linux.vnet.ibm.com, joe@perches.com, willy@infradead.org, brouer@redhat.com, linux-mm@kvack.org, Rao Shoaib Subject: [PATCH 0/2] Move kfree_rcu out of rcu code and use kfree_bulk Date: Sun, 1 Apr 2018 22:31:02 -0700 Message-Id: <1522647064-27167-1-git-send-email-rao.shoaib@oracle.com> X-Mailer: git-send-email 2.7.4 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8850 signatures=668697 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=4 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=484 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804020059 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rao Shoaib This patch moves kfree_call_rcu() out of rcu related code to mm/slab_common and updates kfree_rcu() to use new bulk memory free functions as they are more efficient. This is a resubmission of the previous patch. Changes: 1) checkpatch.pl has been fixed, so kfree_rcu macro is much simpler 2) To handle preemption, preempt_enable()/preempt_disable() statements have been added to __rcu_bulk_free(). Rao Shoaib (2): Move kfree_call_rcu() to slab_common.c kfree_rcu() should use kfree_bulk() interface include/linux/mm.h | 5 ++ include/linux/rcupdate.h | 43 +----------- include/linux/rcutiny.h | 8 ++- include/linux/rcutree.h | 2 - include/linux/slab.h | 42 ++++++++++++ kernel/rcu/tree.c | 24 +++---- kernel/sysctl.c | 40 +++++++++++ mm/slab.h | 23 +++++++ mm/slab_common.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 302 insertions(+), 57 deletions(-) -- 2.7.4