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 6379342BE5; Tue, 30 May 2023 14:52:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0797240A82; Tue, 30 May 2023 14:52:47 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id A3825406BC for ; Tue, 30 May 2023 14:52:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685451164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pvKCBvhvTAPiKkDk7S1e3nMfjTT8F2R8U55xA4YKxoA=; b=CQ3YNDoV027cm5IsQu+eAoaLAf5oXDAtERNqDG48Wu5zGy785ggw/tK4mNaBjCQ841LwMU RI6ZSjjXVmfvwzNWjDPGisAlKgmrP5/asWkVz5QYoUTtMrfgKyMLr2Dw6kyViq4tVUfh5u akuqmRDNaeXb45BYWc4ruQcAugQ/ND0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-611-93GCuY0fPLaDTqqHEgMTlg-1; Tue, 30 May 2023 08:52:43 -0400 X-MC-Unique: 93GCuY0fPLaDTqqHEgMTlg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A0BCB185A78E; Tue, 30 May 2023 12:52:42 +0000 (UTC) Received: from [10.39.208.19] (unknown [10.39.208.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AAE2D492B00; Tue, 30 May 2023 12:52:41 +0000 (UTC) Message-ID: <755a111e-479d-381f-4d35-df3521f01855@redhat.com> Date: Tue, 30 May 2023 14:52:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 2/4] vhost: make the guest_notifications statistic counter atomic To: Eelco Chaudron , chenbo.xia@intel.com, david.marchand@redhat.com Cc: dev@dpdk.org References: <168431450017.558450.16680518469610688737.stgit@ebuild.local> <168431453456.558450.8798179744539843068.stgit@ebuild.local> From: Maxime Coquelin In-Reply-To: <168431453456.558450.8798179744539843068.stgit@ebuild.local> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 5/17/23 11:08, Eelco Chaudron wrote: > Making the guest_notifications statistic counter atomic, allows > it to be safely incremented while holding the read access_lock. > > Signed-off-by: Eelco Chaudron > --- > lib/vhost/vhost.c | 8 ++++++++ > lib/vhost/vhost.h | 9 ++++++--- > 2 files changed, 14 insertions(+), 3 deletions(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime