[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zw-ou7gsqTMGQDdl@casper.infradead.org>
Date: Wed, 16 Oct 2024 12:51:23 +0100
From: Matthew Wilcox <willy@...radead.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: lizhe.67@...edance.com, peterz@...radead.org, mingo@...hat.com,
will@...nel.org, longman@...hat.com, boqun.feng@...il.com,
akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [RFC 1/2] rwsem: introduce upgrade_read interface
On Tue, Oct 15, 2024 at 09:56:51PM -0700, Christoph Hellwig wrote:
> On Wed, Oct 16, 2024 at 12:35:59PM +0800, lizhe.67@...edance.com wrote:
> > From: Li Zhe <lizhe.67@...edance.com>
> >
> > Introduce a new rwsem interface upgrade_read(). We can call it
>
> It's obviously a try_upgrade_read, right?
Well, that's confusing. "try" usually means "don't sleep", and this
sleeps. Maybe it shouldn't sleep; ie we make this fail if there's any
other reader? It'll succeed less often, but it'll be easier to
understand.
Powered by blists - more mailing lists