From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] vhost: make the page logging atomic Date: Thu, 03 Aug 2017 22:10:50 +0200 Message-ID: <2354798.sDqUmiiPUi@xps> References: <1501578081-191381-1-git-send-email-tiwei.bie@intel.com> <367875c7-d9f8-03e2-f7af-07e98cd5f772@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Maxime Coquelin , yliu@fridaylinux.org, stable@dpdk.org To: Tiwei Bie Return-path: In-Reply-To: <367875c7-d9f8-03e2-f7af-07e98cd5f772@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 01/08/2017 14:05, Maxime Coquelin: > 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 > > Reviewed-by: Maxime Coquelin Applied, thanks