From patchwork Fri Jan 29 19:30:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waiman Long X-Patchwork-Id: 8167031 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DB8CFBEEE5 for ; Fri, 29 Jan 2016 19:31:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2523020383 for ; Fri, 29 Jan 2016 19:31:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58E742038E for ; Fri, 29 Jan 2016 19:31:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756808AbcA2Tbj (ORCPT ); Fri, 29 Jan 2016 14:31:39 -0500 Received: from g1t6216.austin.hp.com ([15.73.96.123]:55670 "EHLO g1t6216.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753464AbcA2TbG (ORCPT ); Fri, 29 Jan 2016 14:31:06 -0500 Received: from g1t6215.austin.hpicorp.net (g1t6215.austin.hpicorp.net [15.67.1.191]) by g1t6216.austin.hp.com (Postfix) with ESMTP id 6A848B1; Fri, 29 Jan 2016 19:31:05 +0000 (UTC) Received: from RHEL65.localdomain (unknown [16.214.195.24]) by g1t6215.austin.hpicorp.net (Postfix) with ESMTP id 49FBC88; Fri, 29 Jan 2016 19:31:04 +0000 (UTC) From: Waiman Long To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Alexander Viro Cc: linux-fsdevel@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Andi Kleen , Scott J Norton , Douglas Hatch , Waiman Long Subject: [PATCH v2 2/3] lib/list_batch, x86: Enable list insertion/deletion batching for x86 Date: Fri, 29 Jan 2016 14:30:45 -0500 Message-Id: <1454095846-19628-3-git-send-email-Waiman.Long@hpe.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1454095846-19628-1-git-send-email-Waiman.Long@hpe.com> References: <1454095846-19628-1-git-send-email-Waiman.Long@hpe.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP System with a large number of CPUs will benefit from the list batching facility when the list lock is contended. If the lock isn't contended, the performance of the list batching function should be similar to the "lock; listop; unlock;" sequence that it replaces. This patch enables it for the x86 architecture. Signed-off-by: Waiman Long --- arch/x86/Kconfig | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 330e738..5b35be7 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -42,6 +42,7 @@ config X86 select ARCH_SUPPORTS_NUMA_BALANCING if X86_64 select ARCH_USE_BUILTIN_BSWAP select ARCH_USE_CMPXCHG_LOCKREF if X86_64 + select ARCH_USE_LIST_BATCHING select ARCH_USE_QUEUED_RWLOCKS select ARCH_USE_QUEUED_SPINLOCKS select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH if SMP