Re: [PATCH rdma-next v1 05/10] RDMA: Restore ability to fail on SRQ destroy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 03, 2020 at 08:11:12AM +0300, Leon Romanovsky wrote:

> > It is not a big deal but I would like to remove udata as an argument
> > to the driver destroy functions, it is completely nonsensical and
> > never used.
> 
>   197 static void destroy_srq_user(struct ib_pd *pd, struct mlx5_ib_srq *srq,
>   198                              struct ib_udata *udata)
>   199 {
>   200         mlx5_ib_db_unmap_user(
>   201                 rdma_udata_to_drv_context(
>   202                         udata,
>                               ^^^^^^ in use
> 
>   203                         struct mlx5_ib_ucontext,
>   204                         ibucontext),
>   205                 &srq->db);

The ucontext should come from pd->uobject->context

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux