From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH] vhost: make the page logging atomic Date: Tue, 1 Aug 2017 14:05:44 +0200 Message-ID: <367875c7-d9f8-03e2-f7af-07e98cd5f772@redhat.com> References: <1501578081-191381-1-git-send-email-tiwei.bie@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: yliu@fridaylinux.org, stable@dpdk.org To: Tiwei Bie , dev@dpdk.org Return-path: In-Reply-To: <1501578081-191381-1-git-send-email-tiwei.bie@intel.com> Content-Language: en-US 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 08/01/2017 11:01 AM, Tiwei Bie wrote: > Each dirty page logging operation should be atomic. But it's not > atomic in current implementation. So it's possible that some dirty > pages can't be logged successfully when different threads try to > log different pages into the same byte of the log buffer concurrently. > This patch fixes this issue. > > Fixes: b171fad1ffa5 ("vhost: log used vring changes") > Cc:stable@dpdk.org > > Reported-by: Xiao Wang > Signed-off-by: Tiwei Bie > --- > lib/librte_vhost/vhost.h | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) Reviewed-by: Maxime Coquelin Thanks, Maxime