From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932241AbcHOSOd (ORCPT ); Mon, 15 Aug 2016 14:14:33 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:35984 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752877AbcHOSOa (ORCPT ); Mon, 15 Aug 2016 14:14:30 -0400 Date: Mon, 15 Aug 2016 23:44:26 +0530 From: Bhaktipriya Shridhar To: Yishai Hadas , Doug Ledford , Sean Hefty , Hal Rosenstock , Jason Gunthorpe , Leon Romanovsky , Chuck Lever , Mark Bloch , Hans Westgaard Ry , Christoph Lameter , Erez Shitrit , Haggai Eran , Florian Westphal , Guy Shapiro , Eli Cohen , Or Gerlitz , Faisal Latif , Matan Barak , Chien Tin Tung , Mustafa Ismail , Shiraz Saleem , Tatyana Nikolova , Steve Wise , Mike Marciniszyn , Bart Van Assche , Yotam Kenneth , Somnath Kotur , Moni Shoua , Shachar Raindel , Parav Pandit , Sagi Grimberg , Christoph Hellwig , Dean Luick , Ira Weiny , Kaike Wan Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Tejun Heo Subject: [PATCH 20/22] IB/ipoib: Remove deprecated create_singlethread_workqueue Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org alloc_ordered_workqueue() replaces deprecated create_singlethread_workqueue(). The workqueue "ipoib_workqueue" that is used for all flush operstions for the device. WQ_MEM_RECLAIM has not been set since it is not being used on a memory reclaim path. Signed-off-by: Bhaktipriya Shridhar --- drivers/infiniband/ulp/ipoib/ipoib_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 5f58c41..a8043a3 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -2197,7 +2197,8 @@ static int __init ipoib_init_module(void) * its private workqueue, and we only queue up flush events * on our global flush workqueue. This avoids the deadlocks. */ - ipoib_workqueue = create_singlethread_workqueue("ipoib_flush"); + ipoib_workqueue = alloc_ordered_workqueue("ipoib_flush", + WQ_MEM_RECLAIM); if (!ipoib_workqueue) { ret = -ENOMEM; goto err_fs; -- 2.1.4