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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02DCAC54FCF for ; Wed, 25 Mar 2020 16:05:08 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BDE2120409 for ; Wed, 25 Mar 2020 16:05:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BDE2120409 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48nXy94mLBzDqg4 for ; Thu, 26 Mar 2020 03:05:05 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linutronix.de (client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de; envelope-from=bigeasy@linutronix.de; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linutronix.de Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA256 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48nXvl63f9zDqQM for ; Thu, 26 Mar 2020 03:02:59 +1100 (AEDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jH8Ts-0005AG-4C; Wed, 25 Mar 2020 17:02:12 +0100 Date: Wed, 25 Mar 2020 17:02:12 +0100 From: Sebastian Siewior To: Thomas Gleixner Subject: Re: Documentation/locking/locktypes: Further clarifications and wordsmithing Message-ID: <20200325160212.oavrni7gmzudnczv@linutronix.de> References: <20200323025501.GE3199@paulmck-ThinkPad-P72> <87r1xhz6qp.fsf@nanos.tec.linutronix.de> <20200325002811.GO19865@paulmck-ThinkPad-P72> <87wo78y5yy.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <87wo78y5yy.fsf@nanos.tec.linutronix.de> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-usb@vger.kernel.org, linux-ia64@vger.kernel.org, Peter Zijlstra , linux-pci@vger.kernel.org, Oleg Nesterov , Guo Ren , Joel Fernandes , Vincent Chen , Ingo Molnar , Davidlohr Bueso , linux-acpi@vger.kernel.org, Brian Cain , Jonathan Corbet , linux-hexagon@vger.kernel.org, "Rafael J. Wysocki" , linux-csky@vger.kernel.org, Linus Torvalds , Darren Hart , Zhang Rui , Len Brown , Fenghua Yu , paulmck@kernel.org, linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Greentime Hu , Bjorn Helgaas , Kurt Schwemmer , platform-driver-x86@vger.kernel.org, Kalle Valo , kbuild test robot , Felipe Balbi , Michal Simek , Tony Luck , Nick Hu , Geoff Levand , Greg Kroah-Hartman , Randy Dunlap , linux-wireless@vger.kernel.org, LKML , Davidlohr Bueso , Arnd Bergmann , netdev@vger.kernel.org, Logan Gunthorpe , "David S. Miller" , Andy Shevchenko Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On 2020-03-25 13:27:49 [+0100], Thomas Gleixner wrote: > The documentation of rw_semaphores is wrong as it claims that the non-own= er > reader release is not supported by RT. That's just history biased memory > distortion. >=20 > Split the 'Owner semantics' section up and add separate sections for > semaphore and rw_semaphore to reflect reality. >=20 > Aside of that the following updates are done: >=20 > - Add pseudo code to document the spinlock state preserving mechanism on > PREEMPT_RT >=20 > - Wordsmith the bitspinlock and lock nesting sections >=20 > Co-developed-by: Paul McKenney > Signed-off-by: Paul McKenney > Signed-off-by: Thomas Gleixner Acked-by: Sebastian Andrzej Siewior > --- a/Documentation/locking/locktypes.rst > +++ b/Documentation/locking/locktypes.rst =E2=80=A6 > +rw_semaphore > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +rw_semaphore is a multiple readers and single writer lock mechanism. > + > +On non-PREEMPT_RT kernels the implementation is fair, thus preventing > +writer starvation. > + > +rw_semaphore complies by default with the strict owner semantics, but th= ere > +exist special-purpose interfaces that allow non-owner release for reader= s. > +These work independent of the kernel configuration. This reads funny, could be my English. "This works independent =E2=80=A6" m= aybe? Sebastian