Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941567AbcLVRCB (ORCPT ); Thu, 22 Dec 2016 12:02:01 -0500 Received: from smtp2.provo.novell.com ([137.65.250.81]:55793 "EHLO smtp2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756401AbcLVRCA (ORCPT ); Thu, 22 Dec 2016 12:02:00 -0500 From: Davidlohr Bueso To: mingo@kernel.org, peterz@infradead.org, oleg@redhat.com Cc: linux-kernel@vger.kernel.org, dave@stgolabs.net Subject: [PATCH 0/2] sched: Introduce rcuwait Date: Thu, 22 Dec 2016 09:01:34 -0800 Message-Id: <1482426096-12792-1-git-send-email-dave@stgolabs.net> X-Mailer: git-send-email 2.6.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 796 Lines: 24 Hi, Here's an updated version of the pcpu rwsem writer wait/wake changes with the abstractions wanted by Oleg. Patch 1 adds rcuwait (for a lack of better name), and patch 2 trivially makes use of it. Has survived torture testing, which is actually very handy in this case particularly dealing with equal amount of reader and writer threads. Thanks. Davidlohr Bueso (2): sched: Introduce rcuwait machinery locking/percpu-rwsem: Replace waitqueue with rcuwait include/linux/percpu-rwsem.h | 8 +++--- include/linux/rcuwait.h | 63 +++++++++++++++++++++++++++++++++++++++++++ kernel/exit.c | 29 ++++++++++++++++++++ kernel/locking/percpu-rwsem.c | 7 +++-- 4 files changed, 99 insertions(+), 8 deletions(-) create mode 100644 include/linux/rcuwait.h -- 2.6.6