From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966652AbcAZQEM (ORCPT ); Tue, 26 Jan 2016 11:04:12 -0500 Received: from g2t4620.austin.hp.com ([15.73.212.81]:48469 "EHLO g2t4620.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964834AbcAZQEJ (ORCPT ); Tue, 26 Jan 2016 11:04:09 -0500 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 , Scott J Norton , Douglas Hatch , Waiman Long Subject: [RFC PATCH 0/3] lib/list_batch: A simple list insertion/deletion batching facility Date: Tue, 26 Jan 2016 11:03:36 -0500 Message-Id: <1453824219-51437-1-git-send-email-Waiman.Long@hpe.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset introduces a simple list insertion/deletion batching facility to batch multiple list insertion and deletion operations into a single one under one lock/unlock critical section. Patch 1 introduces this new facility. Patch 2 enables it for the x86-64 architecture. Patch 3 makes the insertion and deletion of the VFS superblock's inode list to use the new list batching functions. Waiman Long (3): lib/list_batch: A simple list insertion/deletion batching facility lib/list_batch, x86: Enable list insertion/deletion batching in x86-64 vfs: Enable list batching for the superblock's inode list arch/x86/Kconfig | 1 + fs/inode.c | 13 ++--- fs/super.c | 1 + include/linux/fs.h | 2 + include/linux/list_batch.h | 120 ++++++++++++++++++++++++++++++++++++++++++++ lib/Kconfig | 7 +++ lib/Makefile | 1 + lib/list_batch.c | 117 ++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 254 insertions(+), 8 deletions(-) create mode 100644 include/linux/list_batch.h create mode 100644 lib/list_batch.c