> -----Original Message----- > From: David Marchand <david.march...@redhat.com> > Sent: Wednesday, March 30, 2022 7:20 PM > To: dev@dpdk.org > Cc: maxime.coque...@redhat.com; Xia, Chenbo <chenbo....@intel.com>; Hu, > Jiayu <jiayu...@intel.com>; Wang, YuanX <yuanx.w...@intel.com>; Ding, Xuan > <xuan.d...@intel.com>; sta...@dpdk.org; Patrick Fu <patrick...@intel.com> > Subject: [RFC PATCH v2 4/9] vhost: fix async access > > vq->async accesses must be protected with vq->access_lock. > > Fixes: eb666d24085f ("vhost: fix async unregister deadlock") > Fixes: 0c0935c5f794 ("vhost: allow to check in-flight packets for async > vhost") > Cc: sta...@dpdk.org > > Signed-off-by: David Marchand <david.march...@redhat.com> > --- > lib/vhost/vhost.c | 25 ++++++++++--------------- > 1 file changed, 10 insertions(+), 15 deletions(-)
Thanks for the fix, David. Tested the changes for rte_vhost_async_get_inflight, works as expected. Although I couldn't test, the changes for rte_vhost_async_channel_unregister looks good to me . Based on that, Acked-by: Sunil Pai G <sunil.pa...@intel.com>