Re: [PATCH v4 07/15] vdpa/mlx5: optimize datapath-control synchronization

2022-06-20 Thread Maxime Coquelin
On 6/18/22 11:02, Li Zhang wrote: The driver used a single global lock for any synchronization needed for the datapath and control path. It is better to group the critical sections with the other ones that should be synchronized. Replace the global lock with the following locks: 1.virtq lock

[PATCH v4 07/15] vdpa/mlx5: optimize datapath-control synchronization

2022-06-18 Thread Li Zhang
The driver used a single global lock for any synchronization needed for the datapath and control path. It is better to group the critical sections with the other ones that should be synchronized. Replace the global lock with the following locks: 1.virtq locks(per virtq) synchronize datapath polli