From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0C0CC433F5 for ; Fri, 18 Mar 2022 16:19:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239030AbiCRQVD (ORCPT ); Fri, 18 Mar 2022 12:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238832AbiCRQSL (ORCPT ); Fri, 18 Mar 2022 12:18:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9FB47139AF4 for ; Fri, 18 Mar 2022 09:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647620198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=xelVqge/xO6GXKf9ttXQSExuZAjbuquWRkR8eVnrK4U=; b=Ajs0PH37X8Op0nH/Rayrx9A99FstJhdlZVf/bpio04XA/4X+qQ8P7455YWXapbZf903gaa UBg4HAmdzF7W/C49FS/TtIPQq2AlenFmR6MlmoCjKo9cTSxPQUaJSl6gZj4wEMo08DiWtI 1keVDKbhPY8wP0HvlJ12qJZLhaFfayQ= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-657-IUScUqh1OECoVYFofz_3lA-1; Fri, 18 Mar 2022 12:16:35 -0400 X-MC-Unique: IUScUqh1OECoVYFofz_3lA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id ED706296A621; Fri, 18 Mar 2022 16:16:34 +0000 (UTC) Received: from llong.com (unknown [10.22.19.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id DB3F21111C62; Fri, 18 Mar 2022 16:16:25 +0000 (UTC) From: Waiman Long To: Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng Cc: linux-kernel@vger.kernel.org, Waiman Long Subject: [PATCH 0/2] locking/rwsem: Miscellaneous cleanup and fix Date: Fri, 18 Mar 2022 12:16:07 -0400 Message-Id: <20220318161609.1939957-1-longman@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Waiman Long (2): locking/rwsem: No need to check for handoff bit if wait queue empty locking/rwsem: Wake readers in a reader-owned rwsem if first waiter is a reader kernel/locking/lock_events_list.h | 1 + kernel/locking/rwsem.c | 28 +++++++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) -- 2.27.0