Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3840895pxb; Wed, 13 Oct 2021 14:12:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYNwSYXiEdsYSxypNpM59HNe/CZRzmwSWfyLVyb1vyquTwRdRdgew64x8GURe5KMtuagFF X-Received: by 2002:a17:90a:9404:: with SMTP id r4mr1823672pjo.240.1634159555711; Wed, 13 Oct 2021 14:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634159555; cv=none; d=google.com; s=arc-20160816; b=rjdG9WoFrKQUK/vRd/xlI9FTrrKtQXX26hrDcBbNE5ECYaWaupu849qFw0GjQghLoZ pt2ghdu6o3FlCIHMXyrbSLRJ/hnj47W/gANeKFX9ltRKNLgEOUsKdelRc1LK2986PhLR P0flz4LOm59h4sPMN4CV67PgWHFzkk1ipQczwejbrDoZfqZ6Dq91ncsGU0dSp6RUaHC1 AxWOy6EVl7jd5kMLEPL0+FlMSCgXA8Ha+Q8q3agFGLi74/PBBKnGoX3ZXR8olVWeIs4Y ps7fQaHcVG1aAMJQE8ufIpFUbjwsMyvXjutxqnnBYSGA/2PkPMTD6EJZx8mBhFZ0rWg6 Romg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3WNwfE3UA1GE1htBdimBENBrvRnFUAVO3nMv6ljsFsk=; b=Q/Cj75KvNQUvo5hyzoXmpF6Tz2g3SKyIg5LrPVpJ9Czzmwmw8n7GWOhyvS05pgeDOM A8fqhRsOxh4m6dn/GbI7G3viREzlLHp2uyqcbuf/UijShG7+a12CcAHljBMmzcfE+zIP hXyPC0Ew5LkqekXI8NKcJ3W81qCSOy47K4RHAGxBM8J7Ay6cPmm2Lt/hY+P1BAMW5JaW 0EF/2hc9/xtMvxe9awvcS3udebhgKThv20MrL+z34MTzL2S7sG4Kv+Jd/lGPEoTPjJCE 30VC22oR7LPzegwrr/x0UUcon/qlFJZppLeDrfdK8w8cKO1wUxOPYbbO7DBFgldaBt/s xbKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RrP4OVGH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si9534630pju.116.2021.10.13.14.11.59; Wed, 13 Oct 2021 14:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RrP4OVGH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229841AbhJMVKM (ORCPT + 99 others); Wed, 13 Oct 2021 17:10:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:32112 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbhJMVKL (ORCPT ); Wed, 13 Oct 2021 17:10:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634159287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3WNwfE3UA1GE1htBdimBENBrvRnFUAVO3nMv6ljsFsk=; b=RrP4OVGHsi/JRwv8CiI+5pdReU4TPp5QcPYdEb/rWTBBtlGhVVJe1ovtHdTI1E0ZQ15iAv P1beYHLtymG5xDt/VDKdOrfRPL02OiCH8x4ctb2z3YM6FDPoizzidF4vWtYn8SQtoBWyqs uqnPeR3rThDUCjcLiEaNyrD/dqlsQFU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-434-njfqCk-OP0ixNwcKJ9spsw-1; Wed, 13 Oct 2021 17:08:04 -0400 X-MC-Unique: njfqCk-OP0ixNwcKJ9spsw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F3566802C87; Wed, 13 Oct 2021 21:08:02 +0000 (UTC) Received: from llong.remote.csb (unknown [10.22.33.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4AFA3694B5; Wed, 13 Oct 2021 21:08:02 +0000 (UTC) Subject: Re: [PATCH V2 0/3] misc patches for mutex and rwsem To: Yanfei Xu , peterz@infradead.org, mingo@redhat.com, will@kernel.org, boqun.feng@gmail.com Cc: linux-kernel@vger.kernel.org References: <20211013134154.1085649-1-yanfei.xu@windriver.com> From: Waiman Long Message-ID: <9484e09b-4fba-2b8d-5922-75a830531b48@redhat.com> Date: Wed, 13 Oct 2021 17:08:01 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211013134154.1085649-1-yanfei.xu@windriver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/13/21 9:41 AM, Yanfei Xu wrote: > [patch1] locking:remove rcu_read_lock/unlock as we already disabled preemption > v1->2: also remove the unnecessary rcu_read_lock/unlock in rwsem > > [patch2] locking/rwsem: disable preemption for spinning region > [patch3] locking/rwsem: fix comments about reader optimistic lock stealing conditions > These two patches were sent to mailing list some weeks ago, but it seemed > to be missed, so send them again. > > Yanfei Xu (3): > locking: remove rcu_read_lock/unlock as we already disabled preemption > locking/rwsem: disable preemption for spinning region > locking/rwsem: fix comments about reader optimistic lock stealing > conditions > > kernel/locking/mutex.c | 22 +++++++++++++++------- > kernel/locking/rwsem.c | 28 ++++++++++++++++++---------- > 2 files changed, 33 insertions(+), 17 deletions(-) > The patches look good to me. Thanks! For the series, Acked-by: Waiman Long