Re: [PATCH] doc:lock: remove reference to clever use of read-write lock

2019-09-05 Thread Federico Vaga
On Saturday, August 31, 2019 4:43:44 PM CEST Jonathan Corbet wrote: > On Sat, 31 Aug 2019 15:41:16 +0200 > > Federico Vaga wrote: > > several CPU's and you want to use spinlocks you can potentially use > > > > -cheaper versions of the spinlocks. IFF you know that the spinlocks are > > +cheaper

Re: [PATCH] doc:lock: remove reference to clever use of read-write lock

2019-09-02 Thread Matthew Wilcox
On Mon, Sep 02, 2019 at 02:21:33PM -0600, Jonathan Corbet wrote: > On Mon, 02 Sep 2019 21:19:24 +0200 > Federico Vaga wrote: > > > > > I am not used to the mathematical English jargon. It make sense, but > > > > then > > > > I > > > > would replace it with "If and only if": for clarity. > > >

Re: [PATCH] doc:lock: remove reference to clever use of read-write lock

2019-09-02 Thread Federico Vaga
On Monday, September 2, 2019 10:21:33 PM CEST Jonathan Corbet wrote: > On Mon, 02 Sep 2019 21:19:24 +0200 > > Federico Vaga wrote: > > > > I am not used to the mathematical English jargon. It make sense, but > > > > then > > > > I > > > > would replace it with "If and only if": for clarity. > > >

Re: [PATCH] doc:lock: remove reference to clever use of read-write lock

2019-09-02 Thread Jonathan Corbet
On Mon, 02 Sep 2019 21:19:24 +0200 Federico Vaga wrote: > > > I am not used to the mathematical English jargon. It make sense, but then > > > I > > > would replace it with "If and only if": for clarity. > > > > While it's used in a number of places and it's pretty common wording > > overall in

Re: [PATCH] doc:lock: remove reference to clever use of read-write lock

2019-09-02 Thread Federico Vaga
On Monday, September 2, 2019 8:10:10 PM CEST Ingo Molnar wrote: > * Federico Vaga wrote: > > On Saturday, August 31, 2019 4:43:44 PM CEST Jonathan Corbet wrote: > > > On Sat, 31 Aug 2019 15:41:16 +0200 > > > > > > Federico Vaga wrote: > > > > several CPU's and you want to use spinlocks you can

Re: [PATCH] doc:lock: remove reference to clever use of read-write lock

2019-09-02 Thread Ingo Molnar
* Federico Vaga wrote: > On Saturday, August 31, 2019 4:43:44 PM CEST Jonathan Corbet wrote: > > On Sat, 31 Aug 2019 15:41:16 +0200 > > > > Federico Vaga wrote: > > > several CPU's and you want to use spinlocks you can potentially use > > > > > > -cheaper versions of the spinlocks. IFF you

Re: [PATCH] doc:lock: remove reference to clever use of read-write lock

2019-09-02 Thread Federico Vaga
On Saturday, August 31, 2019 4:43:44 PM CEST Jonathan Corbet wrote: > On Sat, 31 Aug 2019 15:41:16 +0200 > > Federico Vaga wrote: > > several CPU's and you want to use spinlocks you can potentially use > > > > -cheaper versions of the spinlocks. IFF you know that the spinlocks are > > +cheaper

Re: [PATCH] doc:lock: remove reference to clever use of read-write lock

2019-08-31 Thread Jonathan Corbet
On Sat, 31 Aug 2019 15:41:16 +0200 Federico Vaga wrote: > several CPU's and you want to use spinlocks you can potentially use > -cheaper versions of the spinlocks. IFF you know that the spinlocks are > +cheaper versions of the spinlocks. If you know that the spinlocks are > never used in interr

[PATCH] doc:lock: remove reference to clever use of read-write lock

2019-08-31 Thread Federico Vaga
Remove the clever example about read-write lock because these type of lock is not reccomended anymore (according to the very same document). So there is no reason to teach cleaver things that people should not do. (and by the way there was a little typo) Signed-off-by: Federico Vaga --- Documen