lkml.org 
[lkml]   [2016]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 15/22] IB/mlx5/odp: Remove deprecated create_singlethread_workqueue
    On Mon, Aug 15, 2016 at 11:42:19PM +0530, Bhaktipriya Shridhar wrote:
    > alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
    > deprecated create_singlethread_workqueue(). This is the identity
    > conversion.
    >
    > The workqueue "mlx5_ib_page_fault_wq" queues work item &qp_pfault->work.
    > It has been identity converted.
    >
    > WQ_MEM_RECLAIM has been set to ensure forward progress under
    > memory pressure.
    >
    > Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>

    Thanks,
    Acked-by: Leon Romanovsky <leonro@mellanox.com>

    > ---
    > drivers/infiniband/hw/mlx5/odp.c | 4 ++--
    > 1 file changed, 2 insertions(+), 2 deletions(-)
    >
    > diff --git a/drivers/infiniband/hw/mlx5/odp.c b/drivers/infiniband/hw/mlx5/odp.c
    > index 34e79e7..cacb631 100644
    > --- a/drivers/infiniband/hw/mlx5/odp.c
    > +++ b/drivers/infiniband/hw/mlx5/odp.c
    > @@ -782,8 +782,8 @@ void mlx5_ib_odp_remove_one(struct mlx5_ib_dev *ibdev)
    >
    > int __init mlx5_ib_odp_init(void)
    > {
    > - mlx5_ib_page_fault_wq =
    > - create_singlethread_workqueue("mlx5_ib_page_faults");
    > + mlx5_ib_page_fault_wq = alloc_ordered_workqueue("mlx5_ib_page_faults",
    > + WQ_MEM_RECLAIM);
    > if (!mlx5_ib_page_fault_wq)
    > return -ENOMEM;
    >
    > --
    > 2.1.4
    >
    > --
    > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2016-09-17 09:57    [W:25.436 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site