From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933078AbdBVSFe (ORCPT ); Wed, 22 Feb 2017 13:05:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52154 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932500AbdBVSF0 (ORCPT ); Wed, 22 Feb 2017 13:05:26 -0500 From: Waiman Long To: Ingo Molnar , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Davidlohr Bueso , Waiman Long Subject: [PATCH-tip 0/3] locking/rwsem: Minor twists to improve rwsem performance Date: Wed, 22 Feb 2017 13:03:51 -0500 Message-Id: <1487786634-22641-1-git-send-email-longman@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 22 Feb 2017 18:05:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch 1 checks wait_list without lock when spinners are present. Patch 2 moves down the rwsem_down_read_failed() function after the optimistic spinning section so that functions in that section can be used. Patch 3 undoes active read lock ASAP when either the spinners are present or the trylock fails. Waiman Long (3): locking/rwsem: Check wait_list without lock if spinner present locking/rwsem: move down rwsem_down_read_failed() locking/rwsem: Stop active read lock ASAP kernel/locking/rwsem-xadd.c | 126 +++++++++++++++++++++++++++----------------- 1 file changed, 78 insertions(+), 48 deletions(-) -- 1.8.3.1