Re: [PATCH rdma-next v2 8/9] RDMA: Restore ability to return error for destroy WQ

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

 



On Mon, Sep 07, 2020 at 03:09:20PM +0300, Leon Romanovsky wrote:
> -void mlx5_ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata)
> +int mlx5_ib_destroy_wq(struct ib_wq *wq, struct ib_udata *udata)
>  {
>  	struct mlx5_ib_dev *dev = to_mdev(wq->device);
>  	struct mlx5_ib_rwq *rwq = to_mrwq(wq);
> +	int ret;
>  
> -	mlx5_core_destroy_rq_tracked(dev, &rwq->core_qp);
> +	ret = mlx5_core_destroy_rq_tracked(dev, &rwq->core_qp);
> +	if (ret && udata)
> +		return ret;

No udata check here

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