On Thu, Jun 03, 2021 at 04:18:03PM +0300, Leon Romanovsky wrote: > From: Mark Zhang <markzhang@xxxxxxxxxx> > > In fork scenario, the parent and child can have same virtual address. > That causes to the list_for_each_entry search return same doorbell location > for all processes. > > This patch takes the mm_struct into consideration during search, to make > sure that different doorbell memory is used for the different processes. > > Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") > Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > Signed-off-by: Mark Zhang <markzhang@xxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> > --- > drivers/infiniband/hw/mlx5/doorbell.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) Applied to for-rc, thanks Jason