From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 43346A09E4; Thu, 28 Jan 2021 02:32:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA21414109F; Thu, 28 Jan 2021 02:32:12 +0100 (CET) Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) by mails.dpdk.org (Postfix) with ESMTP id C222714109E for ; Thu, 28 Jan 2021 02:32:11 +0100 (CET) Received: by mail-pg1-f181.google.com with SMTP id n10so3196021pgl.10 for ; Wed, 27 Jan 2021 17:32:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5784iPKyRKj6JXCz8uz47cEDzoicS65Tt7M3XL8973c=; b=wG/SMdB8CCLvclWs/JR7FK97kzRn4nBMGX88Bbkosi9lybIajHNKTlMHy+J0hYZA2Z mRPW98iwAJrJT6RoSEqhTIc/Rc4+hvzWdtQJbx7ldVYYYqlNDFXDNMM2lUm2CiCHQ2gR UeopGpaVKQS5EVBG4UYWkeTacUcvTQtBt084PKvsDAHpi1sTGiAi23RIyo0IxV0UxEU+ QgMS00WtyXBabzktEvH00Ur0dlsCiN9vJEsQvtZTveww1tN+8TsqppSNm42vRN1INGUz cHi1UsaGTJVmF5dj1pzFm/A9S0D9sCXnUjV0XWmAY+t3dQyuhAYfASMVJx203oYUiv52 NOgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5784iPKyRKj6JXCz8uz47cEDzoicS65Tt7M3XL8973c=; b=FIjMtg9kfzlbz3n/LyG+PJucd18rVqYUvqAJKZRYbyIo/a7XqF5vur49qW0xBGcJ77 Rn8S6bykdd5z77RvhugIFKttSYNwhtDzULfgJGSDc/Krtf9ApioabqNdu3GRbeRbndpI rvRsnZrC/Hyo5DCYa+gEbBBrR4r27Z7FrMbWJ8FdlAHhgMHrMEtABHGS/rL5u5TkkY9S hwUDwuiSta8lbllRPvel0e0/hdJGsPlVDowc3oID1Po0WDioHshwsR7GVlNG3BA2QmsK S3GE0tPESWxxrwZlCEyJcVZbhGL0nAC0TzxnM9pn1YrByhm2K8UFke6AczJMCp4Uv1ZG 8dww== X-Gm-Message-State: AOAM531POfV86JeWW9u9alsi5CA1MqwOQwcS1zhwEIJnoHrbpNM1kBDb kx5LQvpXTrP6vVM+t+kmmBzkYw== X-Google-Smtp-Source: ABdhPJwV7rRCPYXQhHEj8WpjOXmUv9//2Oej7tCTe+ohD6A2g90+DIM+E1fo89wtlrU5A+09Dvm3Eg== X-Received: by 2002:a65:4288:: with SMTP id j8mr13989897pgp.346.1611797530999; Wed, 27 Jan 2021 17:32:10 -0800 (PST) Received: from hermes.local (76-14-222-244.or.wavecable.com. [76.14.222.244]) by smtp.gmail.com with ESMTPSA id f15sm3059695pja.24.2021.01.27.17.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 17:32:10 -0800 (PST) Date: Wed, 27 Jan 2021 17:32:02 -0800 From: Stephen Hemminger To: Ruifeng Wang Cc: "dev@dpdk.org" , nd Message-ID: <20210127173202.46d0d3d7@hermes.local> In-Reply-To: References: <20210112060524.409412-1-stephen@networkplumber.org> <20210114173454.56657-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1] eal: add ticket based reader writer lock X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 27 Jan 2021 10:25:15 +0000 Ruifeng Wang wrote: > > -----Original Message----- > > From: dev On Behalf Of Stephen Hemminger > > Sent: Friday, January 15, 2021 1:35 AM > > To: dev@dpdk.org > > Cc: Stephen Hemminger > > 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.