[dpdk-dev] [PATCH v1] eal: add ticket based reader writer lock

Stephen Hemminger stephen at networkplumber.org
Thu Jan 28 02:32:02 CET 2021


On Wed, 27 Jan 2021 10:25:15 +0000
Ruifeng Wang <Ruifeng.Wang at arm.com> wrote:

> > -----Original Message-----
> > From: dev <dev-bounces at dpdk.org> On Behalf Of Stephen Hemminger
> > Sent: Friday, January 15, 2021 1:35 AM
> > To: dev at dpdk.org
> > Cc: Stephen Hemminger <stephen at networkplumber.org>
> > Subject: [dpdk-dev] [PATCH v1] eal: add ticket based reader writer lock
> > 
> > This patch implements a reader/writer ticket lock.
> > This lock type acts like rte_rwlock() but uses a ticket algorithm and are fair for
> > multiple writers and readers.
> > Writers have  priority over readers.  
> 
> The lock is ticket based to be fair. So writers should have no priority?


Read the articles referenced in the code.
The naming matches what the original MCS paper called it.


More information about the dev mailing list