From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753185AbcHOR5H (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 13:57:07 -0400
Received: from mail-pf0-f195.google.com ([209.85.192.195]:33453 "EHLO
	mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752994AbcHOR5E (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 13:57:04 -0400
Date: Mon, 15 Aug 2016 23:27:01 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 00/22] Remove deprecated create_workqueue instances
Message-ID: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

This patch set removes the instances of deprecated
create_singlethread_workqueue (scheduled for removal) in
drivers/infiniband by making the appropriate conversions.

Bhaktipriya Shridhar (22):
  IB/sa : Remove deprecated create_singlethread_workqueue
  IB/mad: Remove deprecated create_singlethread_workqueue
  IB/multicast: Remove deprecated create_singlethread_workqueue
  IB/ucma: Remove deprecated create_singlethread_workqueue
  IB/cma: Remove deprecated create_singlethread_workqueue
  IB/addr: Remove deprecated create_singlethread_workqueue
  IB/iwcm: Remove deprecated create_singlethread_workqueue
  iw_cxgb3: Remove deprecated create_singlethread_workqueue
  IB/qib: Remove deprecated create_singlethread_workqueue
  iw_cxgb4: Remove deprecated create_singlethread_workqueue
  IB/mthca: Remove deprecated create_singlethread_workqueue
  i40iw_main: Remove deprecated create_singlethread_workqueue
  i40iw_cm: Remove deprecated create_singlethread_workqueue
  IB/mlx5: Remove deprecated create_singlethread_workqueue
  IB/mlx5/odp: Remove deprecated create_singlethread_workqueue
  IB/mlx4: Remove deprecated create_singlethread_workqueue
  IB/mlx4/mad: Remove deprecated create_singlethread_workqueue
  IB/mlx4/mcg: Remove deprecated create_singlethread_workqueue
  IB/nes: Remove deprecated create_singlethread_workqueue
  IB/ipoib: Remove deprecated create_singlethread_workqueue
  IB/ipoib_verbs: Remove deprecated create_singlethread_workqueue
  IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue

 drivers/infiniband/core/addr.c             | 2 +-
 drivers/infiniband/core/cma.c              | 2 +-
 drivers/infiniband/core/iwcm.c             | 2 +-
 drivers/infiniband/core/mad.c              | 2 +-
 drivers/infiniband/core/multicast.c        | 2 +-
 drivers/infiniband/core/sa_query.c         | 2 +-
 drivers/infiniband/core/ucma.c             | 3 ++-
 drivers/infiniband/hw/cxgb3/iwch_cm.c      | 2 +-
 drivers/infiniband/hw/cxgb4/cm.c           | 2 +-
 drivers/infiniband/hw/i40iw/i40iw_cm.c     | 7 +++++--
 drivers/infiniband/hw/i40iw/i40iw_main.c   | 2 +-
 drivers/infiniband/hw/mlx4/alias_GUID.c    | 2 +-
 drivers/infiniband/hw/mlx4/mad.c           | 4 ++--
 drivers/infiniband/hw/mlx4/main.c          | 2 +-
 drivers/infiniband/hw/mlx4/mcg.c           | 4 ++--
 drivers/infiniband/hw/mlx5/mr.c            | 2 +-
 drivers/infiniband/hw/mlx5/odp.c           | 4 ++--
 drivers/infiniband/hw/mthca/mthca_catas.c  | 2 +-
 drivers/infiniband/hw/nes/nes_cm.c         | 4 ++--
 drivers/infiniband/hw/qib/qib_init.c       | 4 ++--
 drivers/infiniband/ulp/ipoib/ipoib_main.c  | 3 ++-
 drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 2 +-
 22 files changed, 33 insertions(+), 28 deletions(-)

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753176AbcHOR5w (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 13:57:52 -0400
Received: from mail-pf0-f196.google.com ([209.85.192.196]:35793 "EHLO
	mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752877AbcHOR5u (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 13:57:50 -0400
Date: Mon, 15 Aug 2016 23:27:46 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 01/22] IB/sa : Remove deprecated create_singlethread_workqueue
Message-ID: <54ed68ef678ba1cb607dee4bda9107cd396cf4d5.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "ib_nl" queues work item &ib_nl_timed_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>
---
 drivers/infiniband/core/sa_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c
index e955386..6559199 100644
--- a/drivers/infiniband/core/sa_query.c
+++ b/drivers/infiniband/core/sa_query.c
@@ -1974,7 +1974,7 @@ int ib_sa_init(void)
 		goto err2;
 	}

-	ib_nl_wq = create_singlethread_workqueue("ib_nl_sa_wq");
+	ib_nl_wq = alloc_ordered_workqueue("ib_nl_sa_wq", WQ_MEM_RECLAIM);
 	if (!ib_nl_wq) {
 		ret = -ENOMEM;
 		goto err3;
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753235AbcHOR6O (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 13:58:14 -0400
Received: from mail-pf0-f195.google.com ([209.85.192.195]:34823 "EHLO
	mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752989AbcHOR6L (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 13:58:11 -0400
Date: Mon, 15 Aug 2016 23:28:07 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 02/22] IB/mad: Remove deprecated create_singlethread_workqueue
Message-ID: <628aa8595bcf9b2294afa3cd78560de9714d6443.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

The workqueue "ib_nl" queues work items &ib_nl_timed_work and
&mad_agent_priv->local_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>
---
 drivers/infiniband/core/mad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c
index 2d49228..d882868 100644
--- a/drivers/infiniband/core/mad.c
+++ b/drivers/infiniband/core/mad.c
@@ -3177,7 +3177,7 @@ static int ib_mad_port_open(struct ib_device *device,
 		goto error7;

 	snprintf(name, sizeof name, "ib_mad%d", port_num);
-	port_priv->wq = create_singlethread_workqueue(name);
+	port_priv->wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!port_priv->wq) {
 		ret = -ENOMEM;
 		goto error8;
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753181AbcHOR6n (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 13:58:43 -0400
Received: from mail-pa0-f65.google.com ([209.85.220.65]:33119 "EHLO
	mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752801AbcHOR6l (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 13:58:41 -0400
Date: Mon, 15 Aug 2016 23:28:36 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 03/22] IB/multicast: Remove deprecated
 create_singlethread_workqueue
Message-ID: <147d09ed5685d5a76fb8709e18bfd9f966755781.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "mcast_wq" queues work item &group->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>
---
 drivers/infiniband/core/multicast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/multicast.c b/drivers/infiniband/core/multicast.c
index a83ec28..002a85c 100644
--- a/drivers/infiniband/core/multicast.c
+++ b/drivers/infiniband/core/multicast.c
@@ -894,7 +894,7 @@ int mcast_init(void)
 {
 	int ret;

-	mcast_wq = create_singlethread_workqueue("ib_mcast");
+	mcast_wq = alloc_ordered_workqueue("ib_mcast", WQ_MEM_RECLAIM);
 	if (!mcast_wq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753274AbcHOR7V (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 13:59:21 -0400
Received: from mail-pa0-f65.google.com ([209.85.220.65]:35624 "EHLO
	mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752997AbcHOR7T (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 13:59:19 -0400
Date: Mon, 15 Aug 2016 23:29:10 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 04/22] IB/ucma: Remove deprecated
 create_singlethread_workqueue
Message-ID: <1b0e0db2cb8858dddda24abc5376016bd72ad902.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "close_wq" queues work items &ctx->close_work (maps to
ucma_close_id) and &con_req_eve->close_work (maps to
ucma_close_event_id). 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>
---
 drivers/infiniband/core/ucma.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index c0f3826..9045387 100644
--- a/drivers/infiniband/core/ucma.c
+++ b/drivers/infiniband/core/ucma.c
@@ -1628,7 +1628,8 @@ static int ucma_open(struct inode *inode, struct file *filp)
 	if (!file)
 		return -ENOMEM;

-	file->close_wq = create_singlethread_workqueue("ucma_close_id");
+	file->close_wq = alloc_ordered_workqueue("ucma_close_id",
+						 WQ_MEM_RECLAIM);
 	if (!file->close_wq) {
 		kfree(file);
 		return -ENOMEM;
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753315AbcHOR7m (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 13:59:42 -0400
Received: from mail-pa0-f68.google.com ([209.85.220.68]:35686 "EHLO
	mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1753283AbcHOR7j (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 13:59:39 -0400
Date: Mon, 15 Aug 2016 23:29:35 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 05/22] IB/cma: Remove deprecated create_singlethread_workqueue
Message-ID: <a56fa1378894125beed6a679b9d8ee14ae3b601f.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "cma_wq" queues work item cma_work_handler. 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>
---
 drivers/infiniband/core/cma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index ad1b1ad..a262fdc 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -4277,7 +4277,7 @@ static int __init cma_init(void)
 {
 	int ret;

-	cma_wq = create_singlethread_workqueue("rdma_cm");
+	cma_wq = alloc_ordered_workqueue("rdma_cm", WQ_MEM_RECLAIM);
 	if (!cma_wq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S932260AbcHOSAi (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:00:38 -0400
Received: from mail-pf0-f193.google.com ([209.85.192.193]:34392 "EHLO
	mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S932115AbcHOSAg (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:00:36 -0400
Date: Mon, 15 Aug 2016 23:30:32 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 06/22] IB/addr: Remove deprecated
 create_singlethread_workqueue
Message-ID: <b504c6a6639c383df87f1a6e1036920a2f52bfee.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

The workqueue "addr_wq" queues a single work item &work and hence
doesn't require ordering. Also, it is being used on a memory reclaim
path. Hence, it has been converted to use alloc_workqueue with
WQ_MEM_RECLAIM set.

WQ_MEM_RECLAIM has been set to ensure forward progress under
memory pressure.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
 drivers/infiniband/core/addr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
index 1374541..b136d3a 100644
--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -800,7 +800,7 @@ static struct notifier_block nb = {

 int addr_init(void)
 {
-	addr_wq = create_singlethread_workqueue("ib_addr");
+	addr_wq = alloc_workqueue("ib_addr", WQ_MEM_RECLAIM, 0);
 	if (!addr_wq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S932323AbcHOSHw (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:07:52 -0400
Received: from mail-pa0-f67.google.com ([209.85.220.67]:36067 "EHLO
	mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S932232AbcHOSHt (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:07:49 -0400
Date: Mon, 15 Aug 2016 23:37:44 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 07/22] IB/iwcm: Remove deprecated
 create_singlethread_workqueue
Message-ID: <7ff721d47b418328d541d6a9b9c7c776bad8ab7e.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "iwcm_wq" queues work item &work(maps to cm_work_handler).
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>
---
 drivers/infiniband/core/iwcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c
index f057204..d6b5224 100644
--- a/drivers/infiniband/core/iwcm.c
+++ b/drivers/infiniband/core/iwcm.c
@@ -1180,7 +1180,7 @@ static int __init iw_cm_init(void)
 	if (ret)
 		pr_err("iw_cm: couldn't register netlink callbacks\n");

-	iwcm_wq = create_singlethread_workqueue("iw_cm_wq");
+	iwcm_wq = alloc_ordered_workqueue("iw_cm_wq", WQ_MEM_RECLAIM);
 	if (!iwcm_wq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S932367AbcHOSI0 (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:08:26 -0400
Received: from mail-pf0-f194.google.com ([209.85.192.194]:35399 "EHLO
	mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S932253AbcHOSIY (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:08:24 -0400
Date: Mon, 15 Aug 2016 23:38:20 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 08/22] iw_cxgb3: Remove deprecated
 create_singlethread_workqueue
Message-ID: <dd5611ccb8d41b4b5663893100c26eaf262702a2.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "workq" queues work item &skb_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>
---
 drivers/infiniband/hw/cxgb3/iwch_cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index 3e8431b..1ce4e6b 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -2258,7 +2258,7 @@ int __init iwch_cm_init(void)
 {
 	skb_queue_head_init(&rxq);

-	workq = create_singlethread_workqueue("iw_cxgb3");
+	workq = alloc_ordered_workqueue("iw_cxgb3", WQ_MEM_RECLAIM);
 	if (!workq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753081AbcHOSIx (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:08:53 -0400
Received: from mail-pa0-f65.google.com ([209.85.220.65]:34417 "EHLO
	mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752958AbcHOSIv (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:08:51 -0400
Date: Mon, 15 Aug 2016 23:38:47 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 09/22] IB/qib: Remove deprecated create_singlethread_workqueue
Message-ID: <e0310e6be2420c4dc27d752c2b7465cd359cdca9.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "qib" queues work item &priv->s_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>
---
 drivers/infiniband/hw/qib/qib_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c
index f253111..1730aa8 100644
--- a/drivers/infiniband/hw/qib/qib_init.c
+++ b/drivers/infiniband/hw/qib/qib_init.c
@@ -614,8 +614,8 @@ static int qib_create_workqueues(struct qib_devdata *dd)

 			snprintf(wq_name, sizeof(wq_name), "qib%d_%d",
 				dd->unit, pidx);
-			ppd->qib_wq =
-				create_singlethread_workqueue(wq_name);
+			ppd->qib_wq = alloc_ordered_workqueue(wq_name,
+							      WQ_MEM_RECLAIM);
 			if (!ppd->qib_wq)
 				goto wq_error;
 		}
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753190AbcHOSJZ (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:09:25 -0400
Received: from mail-pf0-f196.google.com ([209.85.192.196]:34713 "EHLO
	mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1750791AbcHOSJX (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:09:23 -0400
Date: Mon, 15 Aug 2016 23:39:14 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 10/22] iw_cxgb4: Remove deprecated
 create_singlethread_workqueue
Message-ID: <e077483441ceffa8810f78590cff123bf1e7cc89.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "workq" queues work item &skb_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>
---
 drivers/infiniband/hw/cxgb4/cm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index a3a6721..6438b4c 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -4282,7 +4282,7 @@ int __init c4iw_cm_init(void)
 	spin_lock_init(&timeout_lock);
 	skb_queue_head_init(&rxq);

-	workq = create_singlethread_workqueue("iw_cxgb4");
+	workq = alloc_ordered_workqueue("iw_cxgb4", WQ_MEM_RECLAIM);
 	if (!workq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753228AbcHOSJo (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:09:44 -0400
Received: from mail-pa0-f65.google.com ([209.85.220.65]:33739 "EHLO
	mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1750791AbcHOSJl (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:09:41 -0400
Date: Mon, 15 Aug 2016 23:39:37 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 11/22] IB/mthca: Remove deprecated
 create_singlethread_workqueue
Message-ID: <fa3faeb55855e879dc73761a63b06c62a1644882.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "catas_wq" in triggering a device remove and causing a
device reset when a catastrophic error occurs. 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>
---
 drivers/infiniband/hw/mthca/mthca_catas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mthca/mthca_catas.c b/drivers/infiniband/hw/mthca/mthca_catas.c
index 712d2a3..f6474c2 100644
--- a/drivers/infiniband/hw/mthca/mthca_catas.c
+++ b/drivers/infiniband/hw/mthca/mthca_catas.c
@@ -187,7 +187,7 @@ int __init mthca_catas_init(void)
 {
 	INIT_WORK(&catas_work, catas_reset);

-	catas_wq = create_singlethread_workqueue("mthca_catas");
+	catas_wq = alloc_ordered_workqueue("mthca_catas", WQ_MEM_RECLAIM);
 	if (!catas_wq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753251AbcHOSKP (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:10:15 -0400
Received: from mail-pa0-f67.google.com ([209.85.220.67]:34614 "EHLO
	mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1750791AbcHOSKN (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:10:13 -0400
Date: Mon, 15 Aug 2016 23:40:09 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 12/22] i40iw_main: Remove deprecated
 create_singlethread_workqueue
Message-ID: <0f01b3a07591a31491f2f026e22f23b0b3e7e88e.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "virtchnl_wq" queues work items i40iw_cqp_generic_worker
and i40iw_cqp_manage_hmc_fcn_worker. 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>
---
 drivers/infiniband/hw/i40iw/i40iw_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c
index 6e90813..798335f 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_main.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_main.c
@@ -1613,7 +1613,7 @@ static int i40iw_open(struct i40e_info *ldev, struct i40e_client *client)
 		status = i40iw_hmc_init_pble(&iwdev->sc_dev, iwdev->pble_rsrc);
 		if (status)
 			break;
-		iwdev->virtchnl_wq = create_singlethread_workqueue("iwvch");
+		iwdev->virtchnl_wq = alloc_ordered_workqueue("iwvch", WQ_MEM_RECLAIM);
 		i40iw_register_notifiers();
 		iwdev->init_state = INET_NOTIFIER;
 		status = i40iw_add_mac_ip(iwdev);
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S932233AbcHOSLE (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:11:04 -0400
Received: from mail-pf0-f193.google.com ([209.85.192.193]:35796 "EHLO
	mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1753207AbcHOSLC (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:11:02 -0400
Date: Mon, 15 Aug 2016 23:40:53 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 13/22] i40iw_cm: Remove deprecated
 create_singlethread_workqueue
Message-ID: <a88357097ecff8511185fb899524abd149108470.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "event_wq" is involved in event handling and queues
i40iw_cm_event_handler.

The workqueue "disconn_wq" is involved in closing connection and queues
i40iw_disconnect_worker.

Both workqueues have been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under memory
pressure.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
 drivers/infiniband/hw/i40iw/i40iw_cm.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/i40iw/i40iw_cm.c b/drivers/infiniband/hw/i40iw/i40iw_cm.c
index d2fa725..76082b3 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_cm.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_cm.c
@@ -3166,8 +3166,11 @@ void i40iw_setup_cm_core(struct i40iw_device *iwdev)
 	spin_lock_init(&cm_core->ht_lock);
 	spin_lock_init(&cm_core->listen_list_lock);

-	cm_core->event_wq = create_singlethread_workqueue("iwewq");
-	cm_core->disconn_wq = create_singlethread_workqueue("iwdwq");
+	cm_core->event_wq = alloc_ordered_workqueue("iwewq",
+						    WQ_MEM_RECLAIM);
+
+	cm_core->disconn_wq = alloc_ordered_workqueue("iwdwq",
+						      WQ_MEM_RECLAIM);
 }

 /**
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753292AbcHOSLY (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:11:24 -0400
Received: from mail-pa0-f65.google.com ([209.85.220.65]:34783 "EHLO
	mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752638AbcHOSLW (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:11:22 -0400
Date: Mon, 15 Aug 2016 23:41:18 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 14/22] IB/mlx5: Remove deprecated
 create_singlethread_workqueue
Message-ID: <7d8b7737365694e925e50cef5d673aba0b9dbc04.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "cache->wq" queues work items &ent->work (maps to
cache_work_func) and &ent->dwork(maps to delayed_cache_work_func).
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>
---
 drivers/infiniband/hw/mlx5/mr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c
index 8cf2ce5..fb0194d 100644
--- a/drivers/infiniband/hw/mlx5/mr.c
+++ b/drivers/infiniband/hw/mlx5/mr.c
@@ -614,7 +614,7 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
 	int err;
 	int i;

-	cache->wq = create_singlethread_workqueue("mkey_cache");
+	cache->wq = alloc_ordered_workqueue("mkey_cache", WQ_MEM_RECLAIM);
 	if (!cache->wq) {
 		mlx5_ib_warn(dev, "failed to create work queue\n");
 		return -ENOMEM;
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753182AbcHOSMZ (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:12:25 -0400
Received: from mail-pf0-f194.google.com ([209.85.192.194]:35958 "EHLO
	mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1750791AbcHOSMX (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:12:23 -0400
Date: Mon, 15 Aug 2016 23:42:19 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 15/22] IB/mlx5/odp: Remove deprecated
 create_singlethread_workqueue
Message-ID: <fdc8a637db52a5ea829309bf52afec7e1825bafd.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

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>
---
 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

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753312AbcHOSMy (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:12:54 -0400
Received: from mail-pf0-f196.google.com ([209.85.192.196]:34236 "EHLO
	mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1753099AbcHOSMw (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:12:52 -0400
Date: Mon, 15 Aug 2016 23:42:48 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 16/22] IB/mlx4: Remove deprecated
 create_singlethread_workqueue
Message-ID: <0fd56271e4fd6518141f3af078c0f16c8107711f.1471283717.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "wq" queues work items &dm[i]->work, &ew->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>
---
 drivers/infiniband/hw/mlx4/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index 42a4607..f3876b79 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -3023,7 +3023,7 @@ static int __init mlx4_ib_init(void)
 {
 	int err;

-	wq = create_singlethread_workqueue("mlx4_ib");
+	wq = alloc_ordered_workqueue("mlx4_ib", WQ_MEM_RECLAIM);
 	if (!wq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753343AbcHOSNQ (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:13:16 -0400
Received: from mail-pf0-f194.google.com ([209.85.192.194]:34287 "EHLO
	mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752316AbcHOSNN (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:13:13 -0400
Date: Mon, 15 Aug 2016 23:43:10 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 17/22] IB/mlx4/mad: Remove deprecated
 create_singlethread_workqueue
Message-ID: <18c4505e94d23ab7a34c2aaa9c4ee9f7ace09cef.1471283718.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "wq" queues work item &ctx->work and the workqueue "ud_wq"
queues work item &dm[i]->work.

Both the workqueues have been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under
memory pressure.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
 drivers/infiniband/hw/mlx4/mad.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/mlx4/mad.c b/drivers/infiniband/hw/mlx4/mad.c
index 9c2e53d..35b1260 100644
--- a/drivers/infiniband/hw/mlx4/mad.c
+++ b/drivers/infiniband/hw/mlx4/mad.c
@@ -2070,7 +2070,7 @@ static int mlx4_ib_alloc_demux_ctx(struct mlx4_ib_dev *dev,
 	}

 	snprintf(name, sizeof name, "mlx4_ibt%d", port);
-	ctx->wq = create_singlethread_workqueue(name);
+	ctx->wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!ctx->wq) {
 		pr_err("Failed to create tunnelling WQ for port %d\n", port);
 		ret = -ENOMEM;
@@ -2078,7 +2078,7 @@ static int mlx4_ib_alloc_demux_ctx(struct mlx4_ib_dev *dev,
 	}

 	snprintf(name, sizeof name, "mlx4_ibud%d", port);
-	ctx->ud_wq = create_singlethread_workqueue(name);
+	ctx->ud_wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!ctx->ud_wq) {
 		pr_err("Failed to create up/down WQ for port %d\n", port);
 		ret = -ENOMEM;
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753357AbcHOSNm (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:13:42 -0400
Received: from mail-pa0-f65.google.com ([209.85.220.65]:35647 "EHLO
	mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1753022AbcHOSNj (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:13:39 -0400
Date: Mon, 15 Aug 2016 23:43:35 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 18/22] IB/mlx4/mcg: Remove deprecated
 create_singlethread_workqueue
Message-ID: <4045f5014733b227e085c76f00f9ecf7f6266803.1471283718.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "mcg_wq" queues work items &group->work
and &group->timeout_work.

The workqueue "clean_wq" queues work item mcg_clean_task.

Both have been identity converted.

WQ_MEM_RECLAIM has been set to ensure forward progress under
memory pressure.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
 drivers/infiniband/hw/mlx4/mcg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/mlx4/mcg.c b/drivers/infiniband/hw/mlx4/mcg.c
index 8f7ad07..7d30be0 100644
--- a/drivers/infiniband/hw/mlx4/mcg.c
+++ b/drivers/infiniband/hw/mlx4/mcg.c
@@ -1045,7 +1045,7 @@ int mlx4_ib_mcg_port_init(struct mlx4_ib_demux_ctx *ctx)

 	atomic_set(&ctx->tid, 0);
 	sprintf(name, "mlx4_ib_mcg%d", ctx->port);
-	ctx->mcg_wq = create_singlethread_workqueue(name);
+	ctx->mcg_wq = alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
 	if (!ctx->mcg_wq)
 		return -ENOMEM;

@@ -1246,7 +1246,7 @@ void clean_vf_mcast(struct mlx4_ib_demux_ctx *ctx, int slave)

 int mlx4_ib_mcg_init(void)
 {
-	clean_wq = create_singlethread_workqueue("mlx4_ib_mcg");
+	clean_wq = alloc_ordered_workqueue("mlx4_ib_mcg", WQ_MEM_RECLAIM);
 	if (!clean_wq)
 		return -ENOMEM;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753363AbcHOSOJ (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:14:09 -0400
Received: from mail-pf0-f194.google.com ([209.85.192.194]:35255 "EHLO
	mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752913AbcHOSOH (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:14:07 -0400
Date: Mon, 15 Aug 2016 23:44:03 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 19/22] IB/nes: Remove deprecated create_singlethread_workqueue
Message-ID: <f1904095c510faad8c81799826e9782618d8754d.1471283718.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() replaces deprecated
create_singlethread_workqueue().

The workqueue "event_wq" queues work item &event->event_work and the
workqueue "disconn_wq" queues work item work (maps to
g_cm_core->disconn_wq).

WQ_MEM_RECLAIM has not been set since the workqueues are not being used
on a memory reclaim path.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
 drivers/infiniband/hw/nes/nes_cm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index 7f0aa23..57db9b3 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -2692,12 +2692,12 @@ static struct nes_cm_core *nes_cm_alloc_core(void)
 	nes_debug(NES_DBG_CM, "Init CM Core completed -- cm_core=%p\n", cm_core);

 	nes_debug(NES_DBG_CM, "Enable QUEUE EVENTS\n");
-	cm_core->event_wq = create_singlethread_workqueue("nesewq");
+	cm_core->event_wq = alloc_ordered_workqueue("nesewq", 0);
 	if (!cm_core->event_wq)
 		goto out_free_cmcore;
 	cm_core->post_event = nes_cm_post_event;
 	nes_debug(NES_DBG_CM, "Enable QUEUE DISCONNECTS\n");
-	cm_core->disconn_wq = create_singlethread_workqueue("nesdwq");
+	cm_core->disconn_wq = alloc_ordered_workqueue("nesdwq", 0);
 	if (!cm_core->disconn_wq)
 		goto out_free_wq;

--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S932241AbcHOSOd (ORCPT <rfc822;w@1wt.eu>);
	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
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:14:30 -0400
Date: Mon, 15 Aug 2016 23:44:26 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 20/22] IB/ipoib: Remove deprecated
 create_singlethread_workqueue
Message-ID: <eafc1da6c5e8a6d4e83e23981740ea098dba2a5e.1471283718.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
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 <bhaktipriya96@gmail.com>
---
 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

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753117AbcHOSOw (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:14:52 -0400
Received: from mail-pf0-f195.google.com ([209.85.192.195]:35365 "EHLO
	mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752638AbcHOSOv (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:14:51 -0400
Date: Mon, 15 Aug 2016 23:44:47 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 21/22] IB/ipoib_verbs: Remove deprecated
 create_singlethread_workqueue
Message-ID: <eb1e68a015714b1a566def4c19cc1da6e4193e7d.1471283718.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "wq" queues mulitple work items viz &priv->restart_task,
&priv->cm.rx_reap_task, &priv->cm.skb_task, &priv->neigh_reap_task,
&priv->ah_reap_task, &priv->mcast_task and &priv->carrier_on_task.
The work items require strict execution ordering.
Hence, an ordered dedicated workqueue has been used.

WQ_MEM_RECLAIM has been set to ensure forward progress under
memory pressure.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
---
 drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
index 1e7cbba..5737652 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
@@ -156,7 +156,7 @@ int ipoib_transport_dev_init(struct net_device *dev, struct ib_device *ca)
 	 * the various IPoIB tasks assume they will never race against
 	 * themselves, so always use a single thread workqueue
 	 */
-	priv->wq = create_singlethread_workqueue("ipoib_wq");
+	priv->wq = alloc_ordered_workqueue("ipoib_wq", WQ_MEM_RECLAIM);
 	if (!priv->wq) {
 		printk(KERN_WARNING "ipoib: failed to allocate device WQ\n");
 		goto out_free_pd;
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S932294AbcHOSPT (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 14:15:19 -0400
Received: from mail-pf0-f195.google.com ([209.85.192.195]:34550 "EHLO
	mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1750939AbcHOSPP (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 14:15:15 -0400
Date: Mon, 15 Aug 2016 23:45:06 +0530
From: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
To: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
Subject: [PATCH 22/22] IB/mlx4/alias_GUID: Remove deprecated
 create_singlethread_workqueue
Message-ID: <d3a5db9481e09376cc6200de187e451a582c6722.1471283718.git.bhaktipriya96@gmail.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
deprecated create_singlethread_workqueue(). This is the identity
conversion.

The workqueue "wq" queues work item that maps to alias_guid_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>
---
 drivers/infiniband/hw/mlx4/alias_GUID.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/mlx4/alias_GUID.c b/drivers/infiniband/hw/mlx4/alias_GUID.c
index c74ef26..5e99390 100644
--- a/drivers/infiniband/hw/mlx4/alias_GUID.c
+++ b/drivers/infiniband/hw/mlx4/alias_GUID.c
@@ -881,7 +881,7 @@ int mlx4_ib_init_alias_guid_service(struct mlx4_ib_dev *dev)

 		snprintf(alias_wq_name, sizeof alias_wq_name, "alias_guid%d", i);
 		dev->sriov.alias_guid.ports_guid[i].wq =
-			create_singlethread_workqueue(alias_wq_name);
+			alloc_ordered_workqueue(alias_wq_name, WQ_MEM_RECLAIM);
 		if (!dev->sriov.alias_guid.ports_guid[i].wq) {
 			ret = -ENOMEM;
 			goto err_thread;
--
2.1.4

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S932453AbcHOXLV (ORCPT <rfc822;w@1wt.eu>);
	Mon, 15 Aug 2016 19:11:21 -0400
Received: from mail-qk0-f196.google.com ([209.85.220.196]:32775 "EHLO
	mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S932201AbcHOXLT (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Mon, 15 Aug 2016 19:11:19 -0400
Date: Mon, 15 Aug 2016 19:11:17 -0400
From: Tejun Heo <tj@kernel.org>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>, Doug Ledford <dledford@redhat.com>,
        Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org
Subject: Re: [PATCH 00/22] Remove deprecated create_workqueue instances
Message-ID: <20160815231117.GN3672@mtj.duckdns.org>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.6.2 (2016-07-01)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

Hello,

On Mon, Aug 15, 2016 at 11:27:01PM +0530, Bhaktipriya Shridhar wrote:
> This patch set removes the instances of deprecated
> create_singlethread_workqueue (scheduled for removal) in
> drivers/infiniband by making the appropriate conversions.

Patches generally look good to me.  The only thing is that there seem
to be several patches where ordering doesn't seem necessary, at least
judging from the patch descriptions.  It'd be great to clarify those.

Thanks.

-- 
tejun

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753592AbcHPRcv convert rfc822-to-8bit (ORCPT <rfc822;w@1wt.eu>);
	Tue, 16 Aug 2016 13:32:51 -0400
Received: from mga09.intel.com ([134.134.136.24]:21539 "EHLO mga09.intel.com"
	rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP
	id S1752514AbcHPRct (ORCPT <rfc822;linux-kernel@vger.kernel.org>);
	Tue, 16 Aug 2016 13:32:49 -0400
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.28,529,1464678000"; 
   d="scan'208";a="1026475286"
From: "Marciniszyn, Mike" <mike.marciniszyn@intel.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>,
        Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>,
        "Hefty, Sean" <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        "Jason Gunthorpe" <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        "Guy Shapiro" <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        "Latif, Faisal" <faisal.latif@intel.com>,
        "Matan Barak" <matanb@mellanox.com>,
        "Tung, Chien Tin" <chien.tin.tung@intel.com>,
        "Ismail, Mustafa" <mustafa.ismail@intel.com>,
        "Saleem, Shiraz" <shiraz.saleem@intel.com>,
        "Nikolova, Tatyana E" <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>, infinipath <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        "Yotam Kenneth" <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        "Luick, Dean" <dean.luick@intel.com>,
        "Weiny, Ira" <ira.weiny@intel.com>, "Wan, Kaike" <kaike.wan@intel.com>
CC: "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
        "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
        Tejun Heo <tj@kernel.org>
Subject: RE: [PATCH 09/22] IB/qib: Remove deprecated
 create_singlethread_workqueue
Thread-Topic: [PATCH 09/22] IB/qib: Remove deprecated
 create_singlethread_workqueue
Thread-Index: AQHR9yAWXW4pdbOTIkCnRW5TSzczbaBL2YYw
Date: Tue, 16 Aug 2016 17:32:39 +0000
Message-ID: <32E1700B9017364D9B60AED9960492BC2D0ADC17@fmsmsx120.amr.corp.intel.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
 <e0310e6be2420c4dc27d752c2b7465cd359cdca9.1471283717.git.bhaktipriya96@gmail.com>
In-Reply-To: <e0310e6be2420c4dc27d752c2b7465cd359cdca9.1471283717.git.bhaktipriya96@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGNmYWFmZmUtYjhlMi00NmE4LTkyMzMtYjFmYWZhZGNjNGFiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Imt6Y0k3UGx0XC9USTlaZWNQR1RBZVhJWFJPM0t2S0lmU1RzVGxteUdqb1I0PSJ9
x-ctpclassification: CTP_IC
x-originating-ip: [10.1.200.108]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8BIT
MIME-Version: 1.0
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

> Subject: [PATCH 09/22] IB/qib: Remove deprecated
> create_singlethread_workqueue
> 

Looks and tests good!

Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753633AbcHPSTJ (ORCPT <rfc822;w@1wt.eu>);
	Tue, 16 Aug 2016 14:19:09 -0400
Received: from smtp.opengridcomputing.com ([72.48.136.20]:36667 "EHLO
	smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK)
	by vger.kernel.org with ESMTP id S1752150AbcHPSTH (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Tue, 16 Aug 2016 14:19:07 -0400
From: "Steve Wise" <swise@opengridcomputing.com>
To: "'Bhaktipriya Shridhar'" <bhaktipriya96@gmail.com>,
        "'Yishai Hadas'" <yishaih@mellanox.com>,
        "'Doug Ledford'" <dledford@redhat.com>,
        "'Sean Hefty'" <sean.hefty@intel.com>,
        "'Hal Rosenstock'" <hal.rosenstock@gmail.com>,
        "'Jason Gunthorpe'" <jgunthorpe@obsidianresearch.com>,
        "'Leon Romanovsky'" <leonro@mellanox.com>,
        "'Chuck Lever'" <chuck.lever@oracle.com>,
        "'Mark Bloch'" <markb@mellanox.com>,
        "'Hans Westgaard Ry'" <hans.westgaard.ry@oracle.com>,
        "'Christoph Lameter'" <cl@linux.com>,
        "'Erez Shitrit'" <erezsh@mellanox.com>,
        "'Haggai Eran'" <haggaie@mellanox.com>,
        "'Florian Westphal'" <fw@strlen.de>,
        "'Guy Shapiro'" <guysh@mellanox.com>, "'Eli Cohen'" <eli@mellanox.com>,
        "'Or Gerlitz'" <ogerlitz@mellanox.com>,
        "'Faisal Latif'" <faisal.latif@intel.com>,
        "'Matan Barak'" <matanb@mellanox.com>,
        "'Chien Tin Tung'" <chien.tin.tung@intel.com>,
        "'Mustafa Ismail'" <mustafa.ismail@intel.com>,
        "'Shiraz Saleem'" <shiraz.saleem@intel.com>,
        "'Tatyana Nikolova'" <tatyana.e.nikolova@intel.com>,
        "'Steve Wise'" <swise@chelsio.com>,
        "'Mike Marciniszyn'" <infinipath@intel.com>,
        "'Bart Van Assche'" <bart.vanassche@sandisk.com>,
        "'Yotam Kenneth'" <yotamke@mellanox.com>,
        "'Somnath Kotur'" <Somnath.Kotur@Avagotech.Com>,
        "'Moni Shoua'" <monis@mellanox.com>,
        "'Shachar Raindel'" <raindel@mellanox.com>,
        "'Parav Pandit'" <pandit.parav@gmail.com>,
        "'Sagi Grimberg'" <sagi@grimberg.me>,
        "'Christoph Hellwig'" <hch@infradead.org>,
        "'Dean Luick'" <dean.luick@intel.com>,
        "'Ira Weiny'" <ira.weiny@intel.com>,
        "'Kaike Wan'" <kaike.wan@intel.com>
Cc: <linux-rdma@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
        "'Tejun Heo'" <tj@kernel.org>
References: <cover.1471283717.git.bhaktipriya96@gmail.com> <dd5611ccb8d41b4b5663893100c26eaf262702a2.1471283717.git.bhaktipriya96@gmail.com>
In-Reply-To: <dd5611ccb8d41b4b5663893100c26eaf262702a2.1471283717.git.bhaktipriya96@gmail.com>
Subject: RE: [PATCH 08/22] iw_cxgb3: Remove deprecated create_singlethread_workqueue
Date: Tue, 16 Aug 2016 13:19:09 -0500
Message-ID: <041f01d1f7ea$aeac4b30$0c04e190$@opengridcomputing.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQN97tjb2Ny34cGB5rb+XCD3ewI7xwJLC/YqnOGfJCA=
Content-Language: en-us
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

> 
> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
> 
> The workqueue "workq" queues work item &skb_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>

Acked-by: Steve Wise <swise@opengridcomputing.com>

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753665AbcHPSTh (ORCPT <rfc822;w@1wt.eu>);
	Tue, 16 Aug 2016 14:19:37 -0400
Received: from smtp.opengridcomputing.com ([72.48.136.20]:36698 "EHLO
	smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK)
	by vger.kernel.org with ESMTP id S1753118AbcHPSTf (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Tue, 16 Aug 2016 14:19:35 -0400
From: "Steve Wise" <swise@opengridcomputing.com>
To: "'Bhaktipriya Shridhar'" <bhaktipriya96@gmail.com>,
        "'Yishai Hadas'" <yishaih@mellanox.com>,
        "'Doug Ledford'" <dledford@redhat.com>,
        "'Sean Hefty'" <sean.hefty@intel.com>,
        "'Hal Rosenstock'" <hal.rosenstock@gmail.com>,
        "'Jason Gunthorpe'" <jgunthorpe@obsidianresearch.com>,
        "'Leon Romanovsky'" <leonro@mellanox.com>,
        "'Chuck Lever'" <chuck.lever@oracle.com>,
        "'Mark Bloch'" <markb@mellanox.com>,
        "'Hans Westgaard Ry'" <hans.westgaard.ry@oracle.com>,
        "'Christoph Lameter'" <cl@linux.com>,
        "'Erez Shitrit'" <erezsh@mellanox.com>,
        "'Haggai Eran'" <haggaie@mellanox.com>,
        "'Florian Westphal'" <fw@strlen.de>,
        "'Guy Shapiro'" <guysh@mellanox.com>, "'Eli Cohen'" <eli@mellanox.com>,
        "'Or Gerlitz'" <ogerlitz@mellanox.com>,
        "'Faisal Latif'" <faisal.latif@intel.com>,
        "'Matan Barak'" <matanb@mellanox.com>,
        "'Chien Tin Tung'" <chien.tin.tung@intel.com>,
        "'Mustafa Ismail'" <mustafa.ismail@intel.com>,
        "'Shiraz Saleem'" <shiraz.saleem@intel.com>,
        "'Tatyana Nikolova'" <tatyana.e.nikolova@intel.com>,
        "'Steve Wise'" <swise@chelsio.com>,
        "'Mike Marciniszyn'" <infinipath@intel.com>,
        "'Bart Van Assche'" <bart.vanassche@sandisk.com>,
        "'Yotam Kenneth'" <yotamke@mellanox.com>,
        "'Somnath Kotur'" <Somnath.Kotur@Avagotech.Com>,
        "'Moni Shoua'" <monis@mellanox.com>,
        "'Shachar Raindel'" <raindel@mellanox.com>,
        "'Parav Pandit'" <pandit.parav@gmail.com>,
        "'Sagi Grimberg'" <sagi@grimberg.me>,
        "'Christoph Hellwig'" <hch@infradead.org>,
        "'Dean Luick'" <dean.luick@intel.com>,
        "'Ira Weiny'" <ira.weiny@intel.com>,
        "'Kaike Wan'" <kaike.wan@intel.com>
Cc: <linux-rdma@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
        "'Tejun Heo'" <tj@kernel.org>
References: <cover.1471283717.git.bhaktipriya96@gmail.com> <e077483441ceffa8810f78590cff123bf1e7cc89.1471283717.git.bhaktipriya96@gmail.com>
In-Reply-To: <e077483441ceffa8810f78590cff123bf1e7cc89.1471283717.git.bhaktipriya96@gmail.com>
Subject: RE: [PATCH 10/22] iw_cxgb4: Remove deprecated create_singlethread_workqueue
Date: Tue, 16 Aug 2016 13:19:37 -0500
Message-ID: <042101d1f7ea$bfb0ad90$3f1208b0$@opengridcomputing.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQN97tjb2Ny34cGB5rb+XCD3ewI7xwFJwdgpnOmpoGA=
Content-Language: en-us
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
> 
> The workqueue "workq" queues work item &skb_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>

Acked-by: Steve Wise <swise@opengridcomputing.com>

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753519AbcHPSUZ (ORCPT <rfc822;w@1wt.eu>);
	Tue, 16 Aug 2016 14:20:25 -0400
Received: from smtp.opengridcomputing.com ([72.48.136.20]:36717 "EHLO
	smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK)
	by vger.kernel.org with ESMTP id S1750822AbcHPSUX (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Tue, 16 Aug 2016 14:20:23 -0400
From: "Steve Wise" <swise@opengridcomputing.com>
To: "'Bhaktipriya Shridhar'" <bhaktipriya96@gmail.com>,
        "'Yishai Hadas'" <yishaih@mellanox.com>,
        "'Doug Ledford'" <dledford@redhat.com>,
        "'Sean Hefty'" <sean.hefty@intel.com>,
        "'Hal Rosenstock'" <hal.rosenstock@gmail.com>,
        "'Jason Gunthorpe'" <jgunthorpe@obsidianresearch.com>,
        "'Leon Romanovsky'" <leonro@mellanox.com>,
        "'Chuck Lever'" <chuck.lever@oracle.com>,
        "'Mark Bloch'" <markb@mellanox.com>,
        "'Hans Westgaard Ry'" <hans.westgaard.ry@oracle.com>,
        "'Christoph Lameter'" <cl@linux.com>,
        "'Erez Shitrit'" <erezsh@mellanox.com>,
        "'Haggai Eran'" <haggaie@mellanox.com>,
        "'Florian Westphal'" <fw@strlen.de>,
        "'Guy Shapiro'" <guysh@mellanox.com>, "'Eli Cohen'" <eli@mellanox.com>,
        "'Or Gerlitz'" <ogerlitz@mellanox.com>,
        "'Faisal Latif'" <faisal.latif@intel.com>,
        "'Matan Barak'" <matanb@mellanox.com>,
        "'Chien Tin Tung'" <chien.tin.tung@intel.com>,
        "'Mustafa Ismail'" <mustafa.ismail@intel.com>,
        "'Shiraz Saleem'" <shiraz.saleem@intel.com>,
        "'Tatyana Nikolova'" <tatyana.e.nikolova@intel.com>,
        "'Steve Wise'" <swise@chelsio.com>,
        "'Mike Marciniszyn'" <infinipath@intel.com>,
        "'Bart Van Assche'" <bart.vanassche@sandisk.com>,
        "'Yotam Kenneth'" <yotamke@mellanox.com>,
        "'Somnath Kotur'" <Somnath.Kotur@Avagotech.Com>,
        "'Moni Shoua'" <monis@mellanox.com>,
        "'Shachar Raindel'" <raindel@mellanox.com>,
        "'Parav Pandit'" <pandit.parav@gmail.com>,
        "'Sagi Grimberg'" <sagi@grimberg.me>,
        "'Christoph Hellwig'" <hch@infradead.org>,
        "'Dean Luick'" <dean.luick@intel.com>,
        "'Ira Weiny'" <ira.weiny@intel.com>,
        "'Kaike Wan'" <kaike.wan@intel.com>
Cc: <linux-rdma@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
        "'Tejun Heo'" <tj@kernel.org>
References: <cover.1471283717.git.bhaktipriya96@gmail.com> <7ff721d47b418328d541d6a9b9c7c776bad8ab7e.1471283717.git.bhaktipriya96@gmail.com>
In-Reply-To: <7ff721d47b418328d541d6a9b9c7c776bad8ab7e.1471283717.git.bhaktipriya96@gmail.com>
Subject: RE: [PATCH 07/22] IB/iwcm: Remove deprecated create_singlethread_workqueue
Date: Tue, 16 Aug 2016 13:20:26 -0500
Message-ID: <042301d1f7ea$dc7c32f0$957498d0$@opengridcomputing.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQN97tjb2Ny34cGB5rb+XCD3ewI7xwMrJWd1nNqeriA=
Content-Language: en-us
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
> 
> The workqueue "iwcm_wq" queues work item &work(maps to cm_work_handler).
> 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>

Looks fine.

Reviewed-by: Steve Wise <swise@opengridcomputing.com>

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1753378AbcHPSVk (ORCPT <rfc822;w@1wt.eu>);
	Tue, 16 Aug 2016 14:21:40 -0400
Received: from smtp.opengridcomputing.com ([72.48.136.20]:36736 "EHLO
	smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK)
	by vger.kernel.org with ESMTP id S1752929AbcHPSVh (ORCPT
	<rfc822;linux-kernel@vger.kernel.org>);
	Tue, 16 Aug 2016 14:21:37 -0400
From: "Steve Wise" <swise@opengridcomputing.com>
To: "'Bhaktipriya Shridhar'" <bhaktipriya96@gmail.com>,
        "'Yishai Hadas'" <yishaih@mellanox.com>,
        "'Doug Ledford'" <dledford@redhat.com>,
        "'Sean Hefty'" <sean.hefty@intel.com>,
        "'Hal Rosenstock'" <hal.rosenstock@gmail.com>,
        "'Jason Gunthorpe'" <jgunthorpe@obsidianresearch.com>,
        "'Leon Romanovsky'" <leonro@mellanox.com>,
        "'Chuck Lever'" <chuck.lever@oracle.com>,
        "'Mark Bloch'" <markb@mellanox.com>,
        "'Hans Westgaard Ry'" <hans.westgaard.ry@oracle.com>,
        "'Christoph Lameter'" <cl@linux.com>,
        "'Erez Shitrit'" <erezsh@mellanox.com>,
        "'Haggai Eran'" <haggaie@mellanox.com>,
        "'Florian Westphal'" <fw@strlen.de>,
        "'Guy Shapiro'" <guysh@mellanox.com>, "'Eli Cohen'" <eli@mellanox.com>,
        "'Or Gerlitz'" <ogerlitz@mellanox.com>,
        "'Faisal Latif'" <faisal.latif@intel.com>,
        "'Matan Barak'" <matanb@mellanox.com>,
        "'Chien Tin Tung'" <chien.tin.tung@intel.com>,
        "'Mustafa Ismail'" <mustafa.ismail@intel.com>,
        "'Shiraz Saleem'" <shiraz.saleem@intel.com>,
        "'Tatyana Nikolova'" <tatyana.e.nikolova@intel.com>,
        "'Steve Wise'" <swise@chelsio.com>,
        "'Mike Marciniszyn'" <infinipath@intel.com>,
        "'Bart Van Assche'" <bart.vanassche@sandisk.com>,
        "'Yotam Kenneth'" <yotamke@mellanox.com>,
        "'Somnath Kotur'" <Somnath.Kotur@Avagotech.Com>,
        "'Moni Shoua'" <monis@mellanox.com>,
        "'Shachar Raindel'" <raindel@mellanox.com>,
        "'Parav Pandit'" <pandit.parav@gmail.com>,
        "'Sagi Grimberg'" <sagi@grimberg.me>,
        "'Christoph Hellwig'" <hch@infradead.org>,
        "'Dean Luick'" <dean.luick@intel.com>,
        "'Ira Weiny'" <ira.weiny@intel.com>,
        "'Kaike Wan'" <kaike.wan@intel.com>
Cc: <linux-rdma@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
        "'Tejun Heo'" <tj@kernel.org>
References: <cover.1471283717.git.bhaktipriya96@gmail.com> <a56fa1378894125beed6a679b9d8ee14ae3b601f.1471283717.git.bhaktipriya96@gmail.com>
In-Reply-To: <a56fa1378894125beed6a679b9d8ee14ae3b601f.1471283717.git.bhaktipriya96@gmail.com>
Subject: RE: [PATCH 05/22] IB/cma: Remove deprecated create_singlethread_workqueue
Date: Tue, 16 Aug 2016 13:21:35 -0500
Message-ID: <042501d1f7eb$05b9c150$112d43f0$@opengridcomputing.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQN97tjb2Ny34cGB5rb+XCD3ewI7xwIPF8gKnON/bQA=
Content-Language: en-us
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
> 
> The workqueue "cma_wq" queues work item cma_work_handler. 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>


Looks fine.

Reviewed-by: Steve Wise <swise@opengridcomputing.com>

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S1755547AbcHSPoY (ORCPT <rfc822;w@1wt.eu>);
        Fri, 19 Aug 2016 11:44:24 -0400
Received: from mail-wm0-f65.google.com ([74.125.82.65]:35505 "EHLO
        mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
        with ESMTP id S1755482AbcHSPoV (ORCPT
        <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 19 Aug 2016 11:44:21 -0400
Date: Fri, 19 Aug 2016 18:44:18 +0300
From: Leon Romanovsky <leonro@mellanox.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 14/22] IB/mlx5: Remove deprecated
 create_singlethread_workqueue
Message-ID: <20160819154418.GE18515@leon.nu>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
 <7d8b7737365694e925e50cef5d673aba0b9dbc04.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="7LkOrbQMr4cezO2T"
Content-Disposition: inline
In-Reply-To: <7d8b7737365694e925e50cef5d673aba0b9dbc04.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org


--7LkOrbQMr4cezO2T
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 15, 2016 at 11:41:18PM +0530, Bhaktipriya Shridhar wrote:
> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
>=20
> The workqueue "cache->wq" queues work items &ent->work (maps to
> cache_work_func) and &ent->dwork(maps to delayed_cache_work_func).
> It has been identity converted.
>=20
> WQ_MEM_RECLAIM has been set to ensure forward progress under
> memory pressure.
>=20
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
> ---
>  drivers/infiniband/hw/mlx5/mr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

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

>=20
> diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5=
/mr.c
> index 8cf2ce5..fb0194d 100644
> --- a/drivers/infiniband/hw/mlx5/mr.c
> +++ b/drivers/infiniband/hw/mlx5/mr.c
> @@ -614,7 +614,7 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
>  	int err;
>  	int i;
>=20
> -	cache->wq =3D create_singlethread_workqueue("mkey_cache");
> +	cache->wq =3D alloc_ordered_workqueue("mkey_cache", WQ_MEM_RECLAIM);
>  	if (!cache->wq) {
>  		mlx5_ib_warn(dev, "failed to create work queue\n");
>  		return -ENOMEM;
> --
> 2.1.4
>=20
> --
> 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

--7LkOrbQMr4cezO2T
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXtylSAAoJEORje4g2clinUegP/iiBWg3qUL+B3sl/+rUAAPtV
mCMH3ROPIqlUbxCWK5sRHmAsrJiVC51oE/zAonvac9siCb3f9tEYpmYmrczXmVK/
nrlI0SfbJ+ocHwjkKfxrqfDzwqxo0+8Gq5ACD65PZ8OcyO0IAC3Mk6Ko8JgdSqEu
pdyIFN7loq8uR+dvGGav2bjzW2GFnFH/17pRskc+DJb9XQ5mE/lp2U5nieQZMeCb
In1WweKMRv3a3RwPeHFkLtR6MPLwcbnGypp1OeYfexSPHvBd0v9VG6iR7nf2v6Qb
SIsplduONdxJb9D+vb0iGQxJtlWGO8TZZ28JC+7CNAxs85i2yyffsRp0oSpbUNg8
nJ58upIca2hkSIRb6WdQjIVEcp7ew8O1kO7qMfsQWQI9W+Kmn+ljH3Lw3jSDowSj
LOGP23bSiOG/cOatYD57ele4QizRNbK7eTYFHK9Ui0AiYaC2H5/a3IEYNm1513tr
jBY3y6E+CV0ttaOzQsDWeg5FfHknRU5D8fRpe6Xi1adH12zBonaBQ2/Aq1bN02OO
uLYALX10WN/jYCFbZqYe0EzA1/iIeLvuUPPhF5/SB0NW+UkfGckjKP5TVSryK+NY
K62V8kb/ePgzCCRNtXiNx3nMgWSz+mHslEBTFJwW27DR6/GyvRMJtRaDUyjAicuo
uLa4Eu+3HGW0XEo/vdg6
=nR6z
-----END PGP SIGNATURE-----

--7LkOrbQMr4cezO2T--

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S1755564AbcHSPpB (ORCPT <rfc822;w@1wt.eu>);
        Fri, 19 Aug 2016 11:45:01 -0400
Received: from mail-wm0-f65.google.com ([74.125.82.65]:33972 "EHLO
        mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
        with ESMTP id S1754348AbcHSPoK (ORCPT
        <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 19 Aug 2016 11:44:10 -0400
Date: Fri, 19 Aug 2016 18:43:15 +0300
From: Leon Romanovsky <leonro@mellanox.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 16/22] IB/mlx4: Remove deprecated
 create_singlethread_workqueue
Message-ID: <20160819154315.GD18515@leon.nu>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
 <0fd56271e4fd6518141f3af078c0f16c8107711f.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="MAH+hnPXVZWQ5cD/"
Content-Disposition: inline
In-Reply-To: <0fd56271e4fd6518141f3af078c0f16c8107711f.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org


--MAH+hnPXVZWQ5cD/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 15, 2016 at 11:42:48PM +0530, Bhaktipriya Shridhar wrote:
> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
>=20
> The workqueue "wq" queues work items &dm[i]->work, &ew->work.
> It has been identity converted.
>=20
> WQ_MEM_RECLAIM has been set to ensure forward progress under
> memory pressure.
>=20
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
> ---
>  drivers/infiniband/hw/mlx4/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

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

--MAH+hnPXVZWQ5cD/
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXtykTAAoJEORje4g2clinR3UP/2NCPolPnEToG0zdouSz1twR
J9P/HlwFfr4gvJuBZNo0CGtI2PkXdZyQNwAj6f1YL8IrCRwhBQdZH1a68Di3FooL
A2McneafTQBNAOVwZVj/j5+jNGcXa68JKBmuyidRiaJcf18zbozrztfThQI8Bm6f
80+t2xyHhusBIR3X9qsFjl/SvSulnF16Vdvhj7X8pTuNoSovq5DNHPA6zt85RKMv
QPTtq6UeLOqL/4gt11pL4faM9+5sFJ3dfU0UXW9lOtzAuwd+afANmtH6+N3O3bN5
CDkukNRi+gdXvuz7yzzz2bcKXzhOreTIxhWIkTHM9+MheirBZnecY/ixglOwauou
6n47t2z+i3swT/1siPJsCkw9yfRj2CVOSh00FhwAvU8J8KQqkE2iTnMwuoiiBAw8
D3G6kUHGTvNb18MnU0C1sljzVsa6cR+ICYQgk2Fq2mnWFLDtds8C89lQULSuaXyV
Xs37G8eTVmr2cSRmZt0Nyr1RSlinm19CE/cf9Tk7XSCwKrkpu6MvTxBJXqyA+fjN
pKCSRqrSZxzXnjSXzLvZg9Ps/KQkeHJjnCkHiIziNHu58GkOwfsty4Hl67B7L5sC
IJj3I0Crk0Q24GgEtp7hbxE4Uu0/o5q18Z9PKamDMVW1J06TllZ6oWMuvL/bRPoT
RjVNu5Mo3J/NcC23cqfP
=6Q6m
-----END PGP SIGNATURE-----

--MAH+hnPXVZWQ5cD/--

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S1755421AbcHSPqy (ORCPT <rfc822;w@1wt.eu>);
        Fri, 19 Aug 2016 11:46:54 -0400
Received: from mail-wm0-f65.google.com ([74.125.82.65]:35467 "EHLO
        mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
        with ESMTP id S1754253AbcHSPqw (ORCPT
        <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 19 Aug 2016 11:46:52 -0400
Date: Fri, 19 Aug 2016 18:46:48 +0300
From: Leon Romanovsky <leonro@mellanox.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 14/22] IB/mlx5: Remove deprecated
 create_singlethread_workqueue
Message-ID: <20160819154648.GG18515@leon.nu>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
 <7d8b7737365694e925e50cef5d673aba0b9dbc04.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="+sHJum3is6Tsg7/J"
Content-Disposition: inline
In-Reply-To: <7d8b7737365694e925e50cef5d673aba0b9dbc04.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org


--+sHJum3is6Tsg7/J
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 15, 2016 at 11:41:18PM +0530, Bhaktipriya Shridhar wrote:
> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
>=20
> The workqueue "cache->wq" queues work items &ent->work (maps to
> cache_work_func) and &ent->dwork(maps to delayed_cache_work_func).
> It has been identity converted.
>=20
> WQ_MEM_RECLAIM has been set to ensure forward progress under
> memory pressure.
>=20
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>

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

> ---
>  drivers/infiniband/hw/mlx5/mr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5=
/mr.c
> index 8cf2ce5..fb0194d 100644
> --- a/drivers/infiniband/hw/mlx5/mr.c
> +++ b/drivers/infiniband/hw/mlx5/mr.c
> @@ -614,7 +614,7 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
>  	int err;
>  	int i;
>=20
> -	cache->wq =3D create_singlethread_workqueue("mkey_cache");
> +	cache->wq =3D alloc_ordered_workqueue("mkey_cache", WQ_MEM_RECLAIM);
>  	if (!cache->wq) {
>  		mlx5_ib_warn(dev, "failed to create work queue\n");
>  		return -ENOMEM;
> --
> 2.1.4
>=20
> --
> 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

--+sHJum3is6Tsg7/J
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXtynoAAoJEORje4g2clinQSgP/3b8Ee0ply2sUPvdMo/q2Klv
wooM2TdOJn+xeVvvalQtkk3g2EB+DOq0+evmZnOPEgF9Y9N3G+ORdyPdQBsmrJP2
EUG/T1CQDLdV1cuwc0NiyuIwf+RSgtE7g7zFqedX/m+me6Nth8DOYuz31BqQyW5P
qKCuizm4OQ8woWZZPUb4Lp3GuLPPK7m7iUqbrLml6g+rZH1MuGoKpJY//7PUaInU
C5134WtzPICfG0Vmhr4wrZgby0c8rbRjcANZhW5219f9Drz+XpI/joVJh0fF9FpR
sIR2C/4lUxoMGXDR63ou8XcQzR5V0rY1JRVL06WNILjEsW9cNr8Ubac37RbO+VGv
IeDACRmXyfFZ3mE3QTE1BCSRiZmeMEdi9c4Nd1WDQTPDdhVjeBWgVM/7ezfaPXHn
jUibuY26Ie87/DasYSl8+mcbe4A9ptL2vlmdSmqVIE9bn039UR3BeztIvK9G4WBu
XrxnAXQjipYTqynIZhg26Mf6h29gQbwPoTgvKHN9V/2j+ddD77TzGODZC0tIfVk4
rftaxdT7L6n2SGww34MRBe6s14ZcJlNTH8n/cnBrt796mH86GBMcCMgjBMMV5S6l
2HLdiVVvksmE8rH7sDu3qC6DQinJ2WC/CTwknEVqYM+UvIFLt3OdLD0+o0pzuFSm
ousB+MzV4RXugRAjUeI0
=pJUl
-----END PGP SIGNATURE-----

--+sHJum3is6Tsg7/J--

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S1755298AbcHSPsU (ORCPT <rfc822;w@1wt.eu>);
        Fri, 19 Aug 2016 11:48:20 -0400
Received: from mail-wm0-f68.google.com ([74.125.82.68]:33684 "EHLO
        mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
        with ESMTP id S1755048AbcHSPsS (ORCPT
        <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 19 Aug 2016 11:48:18 -0400
Date: Fri, 19 Aug 2016 18:48:14 +0300
From: Leon Romanovsky <leonro@mellanox.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 00/22] Remove deprecated create_workqueue instances
Message-ID: <20160819154814.GH18515@leon.nu>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="AqCDj3hiknadvR6t"
Content-Disposition: inline
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org


--AqCDj3hiknadvR6t
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 15, 2016 at 11:27:01PM +0530, Bhaktipriya Shridhar wrote:
> This patch set removes the instances of deprecated
> create_singlethread_workqueue (scheduled for removal) in
> drivers/infiniband by making the appropriate conversions.
>=20
> Bhaktipriya Shridhar (22):
>   IB/sa : Remove deprecated create_singlethread_workqueue
>   IB/mad: Remove deprecated create_singlethread_workqueue
>   IB/multicast: Remove deprecated create_singlethread_workqueue
>   IB/ucma: Remove deprecated create_singlethread_workqueue
>   IB/cma: Remove deprecated create_singlethread_workqueue
>   IB/addr: Remove deprecated create_singlethread_workqueue
>   IB/iwcm: Remove deprecated create_singlethread_workqueue
>   iw_cxgb3: Remove deprecated create_singlethread_workqueue
>   IB/qib: Remove deprecated create_singlethread_workqueue
>   iw_cxgb4: Remove deprecated create_singlethread_workqueue
>   IB/mthca: Remove deprecated create_singlethread_workqueue
>   i40iw_main: Remove deprecated create_singlethread_workqueue
>   i40iw_cm: Remove deprecated create_singlethread_workqueue
>   IB/mlx5: Remove deprecated create_singlethread_workqueue
>   IB/mlx5/odp: Remove deprecated create_singlethread_workqueue
>   IB/mlx4: Remove deprecated create_singlethread_workqueue
>   IB/mlx4/mad: Remove deprecated create_singlethread_workqueue
>   IB/mlx4/mcg: Remove deprecated create_singlethread_workqueue
>   IB/nes: Remove deprecated create_singlethread_workqueue
>   IB/ipoib: Remove deprecated create_singlethread_workqueue
>   IB/ipoib_verbs: Remove deprecated create_singlethread_workqueue
>   IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue

Thank you for doing it in one patch set, it is much easier to review.

--AqCDj3hiknadvR6t
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXtyo+AAoJEORje4g2clin6qAP/iga1I4U1F3z5ZaYENd7EIgv
N2zeM2e9+Jv1KkCof324Y9nGeu5WT/CZzf9400MtY0oHeINOJtT42Zju3oK65mNj
F84VTsdp2iAe8rqcWUgMO3nwe4urCpITGJBHXHO0XcTXou69yzi9pTJ/oQJRROgb
BR8mW3uU7pf5q2VDYOq0MTEhA6isrOqmlg5FysKm9PpdfnMIh3HFryXDeT0tpkct
rnxhrgTEBnKXzbyYzKyWDJKy1vbqyj27eRcb5psXZt88XS0HuoOu84ATEISQyzku
GChIZEXlIpLKBtsXXwy6u4PII6we6wsOqN7lyyk4XNvGNK9ZIiN+sHyLOCnrqJrS
j+ZRIPuO3Cc3P2/ppWkN9XWnRbmFYGXynFcHYEsC/77K935Z8JOFe5HBxplwaY0z
A9lfzZu55jet8fgIRnylUuhitMpjdp/seVeCjVg+212m92fDWGKNW1jigKtup7hi
oKIZz0fPudHfXleopiCe2iL9Inp7VjxGzsNeylmQ4VE1RQrM2Y1wNMf0D7hOCUj1
KnNHks+yIffBgOBjSlq+Gtl+F4h21QKZfNawQ1oAAlefiSKYNrc1brbtLigYZCK5
h3/9s+cSYCILi4l0tBSIaRDA91sq9yvzIdazgqBdkBs7ZS+dZHwGfp5yirqSn2BS
lJP0z8PUi3yxzjxcYOxe
=A2ar
-----END PGP SIGNATURE-----

--AqCDj3hiknadvR6t--

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S1755329AbcHSPt1 (ORCPT <rfc822;w@1wt.eu>);
        Fri, 19 Aug 2016 11:49:27 -0400
Received: from mail-wm0-f66.google.com ([74.125.82.66]:35453 "EHLO
        mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
        with ESMTP id S1754140AbcHSPtZ (ORCPT
        <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 19 Aug 2016 11:49:25 -0400
Date: Fri, 19 Aug 2016 18:49:20 +0300
From: Leon Romanovsky <leonro@mellanox.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 15/22] IB/mlx5/odp: Remove deprecated
 create_singlethread_workqueue
Message-ID: <20160819154920.GI18515@leon.nu>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
 <fdc8a637db52a5ea829309bf52afec7e1825bafd.1471283717.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="rCb8EA+9TsBVtA92"
Content-Disposition: inline
In-Reply-To: <fdc8a637db52a5ea829309bf52afec7e1825bafd.1471283717.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org


--rCb8EA+9TsBVtA92
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>=20
> The workqueue "mlx5_ib_page_fault_wq" queues work item &qp_pfault->work.
> It has been identity converted.
>=20
> WQ_MEM_RECLAIM has been set to ensure forward progress under
> memory pressure.
>=20
> 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(-)
>=20
> diff --git a/drivers/infiniband/hw/mlx5/odp.c b/drivers/infiniband/hw/mlx=
5/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)
>=20
>  int __init mlx5_ib_odp_init(void)
>  {
> -	mlx5_ib_page_fault_wq =3D
> -		create_singlethread_workqueue("mlx5_ib_page_faults");
> +	mlx5_ib_page_fault_wq =3D alloc_ordered_workqueue("mlx5_ib_page_faults",
> +							WQ_MEM_RECLAIM);
>  	if (!mlx5_ib_page_fault_wq)
>  		return -ENOMEM;
>=20
> --
> 2.1.4
>=20
> --
> 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

--rCb8EA+9TsBVtA92
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXtyqAAAoJEORje4g2clinSN8QAKqAlquONXjrm3/9qsBKKyth
eUs0PnKOK6v8C22mqSBMZeOoE9xbXh/9W7OLPnstTlvUVQZeMa2KNwf97MDFt0tm
nLi8xje8d/+Olp0UOMnsWHdc0caaZveiR0MuCqYMaUG9ZMkSi9LLcR2lrtloNRoD
pa7vvbvVGEeIzdApWlKliUCnxyJEjDxIdCc2H7/TiO8bQXH1Xm7fwCdCt1MNeYPK
/4lqBKe3VQi3siZ2G3mS3Dl6dAjllyi4FUUuYtaDjUe/W7kQIhTjZL7cOiNrR6Mb
Ki3lxBCLxVW/om0ESaqIO2WONYLz3P6rEQUSEHrhFhnNg4Aixul6r6SCIkzGVyBd
SYsoYecoOVlQcXw1sBauSS268Z8iHPcrnV38bdmO6PW9duN0HO9tzqCAt/lnIipK
H0XhjdmBqQ5MTS1E5Ssjbv6D3UF51vuaK0c987vqInxZPLS8Fxl+aOtqMuUjEbN/
wvuDmetKJl0QsMUh4grhVo+dGgsyM1IhWkBLA5dOXOQekjILmT+ahggutwhUKSKs
Aqw0LJZRrWSCsYALnie4UfrsNBSCjjodV0UjJU574fq0yMcVjYzlmaN/Eu+m9jwV
WTUiEi4yBEzQVJGcKnC33OaEnHexijwgwcmXXZvrrTIZI+NmPNps1U/nRTousf11
A/4CwvJwJIYLgLg7Yrjj
=dwtX
-----END PGP SIGNATURE-----

--rCb8EA+9TsBVtA92--

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S1754686AbcHSPub (ORCPT <rfc822;w@1wt.eu>);
        Fri, 19 Aug 2016 11:50:31 -0400
Received: from mail-wm0-f67.google.com ([74.125.82.67]:34868 "EHLO
        mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
        with ESMTP id S1751599AbcHSPu3 (ORCPT
        <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 19 Aug 2016 11:50:29 -0400
Date: Fri, 19 Aug 2016 18:50:25 +0300
From: Leon Romanovsky <leonro@mellanox.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 17/22] IB/mlx4/mad: Remove deprecated
 create_singlethread_workqueue
Message-ID: <20160819155025.GJ18515@leon.nu>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
 <18c4505e94d23ab7a34c2aaa9c4ee9f7ace09cef.1471283718.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="F4+N/OgRSdC8YnqX"
Content-Disposition: inline
In-Reply-To: <18c4505e94d23ab7a34c2aaa9c4ee9f7ace09cef.1471283718.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org


--F4+N/OgRSdC8YnqX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 15, 2016 at 11:43:10PM +0530, Bhaktipriya Shridhar wrote:
> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
>=20
> The workqueue "wq" queues work item &ctx->work and the workqueue "ud_wq"
> queues work item &dm[i]->work.
>=20
> Both the workqueues have been identity converted.
>=20
> WQ_MEM_RECLAIM has been set to ensure forward progress under
> memory pressure.
>=20
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>

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

> ---
>  drivers/infiniband/hw/mlx4/mad.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>=20
> diff --git a/drivers/infiniband/hw/mlx4/mad.c b/drivers/infiniband/hw/mlx=
4/mad.c
> index 9c2e53d..35b1260 100644
> --- a/drivers/infiniband/hw/mlx4/mad.c
> +++ b/drivers/infiniband/hw/mlx4/mad.c
> @@ -2070,7 +2070,7 @@ static int mlx4_ib_alloc_demux_ctx(struct mlx4_ib_d=
ev *dev,
>  	}
>=20
>  	snprintf(name, sizeof name, "mlx4_ibt%d", port);
> -	ctx->wq =3D create_singlethread_workqueue(name);
> +	ctx->wq =3D alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
>  	if (!ctx->wq) {
>  		pr_err("Failed to create tunnelling WQ for port %d\n", port);
>  		ret =3D -ENOMEM;
> @@ -2078,7 +2078,7 @@ static int mlx4_ib_alloc_demux_ctx(struct mlx4_ib_d=
ev *dev,
>  	}
>=20
>  	snprintf(name, sizeof name, "mlx4_ibud%d", port);
> -	ctx->ud_wq =3D create_singlethread_workqueue(name);
> +	ctx->ud_wq =3D alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
>  	if (!ctx->ud_wq) {
>  		pr_err("Failed to create up/down WQ for port %d\n", port);
>  		ret =3D -ENOMEM;
> --
> 2.1.4
>=20
> --
> 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

--F4+N/OgRSdC8YnqX
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXtyrBAAoJEORje4g2clinRPMQAJHnfhtOtCmVK27/B/jgRQ5H
eXF7BwI/Z2qf4yF0ibrUDwx8itzrr9TQp0iA7Zmf9bFd82cuS4MkBH1JY8lbPKXg
N/neww+r3KfjnqdCIHJGNaBh8DvWOSNJyUw4l9q/7n6fqNdAcuvIBz2gw6N+aiyX
ZQznzVGC/waX7ZlkNtEit/15iRbYmQzwJ4am75iDv4UYcEnV+tCnZae3haFjXwr/
93ZFu38mhnJ2n+iFzPuHIqEYmoGRck+bYnisAcV00g9c1FsaXCLniO21fwTCPR0v
WWQbA9ZJRwc2LgEdt37K+QvCB5+fhk6+iDMZF8Unh4YlX2ejP9qT1t9SgdC7Q7ON
0d9z8JmXuk6vN5XIeSWtHvVqIkU9FSR7b0nLdzxV4NbOLHycVT7na3pt3Gz3UT+9
6EDVTmxXCrjgnhtjy+udec+eseRpx2azOOq0eNSnQ2P3cRVF/gTpD2uMUzYdDsfn
5c/zQZlI0iKEjXk1b2OMHj3bW8Is20hgGZK97LnkY10CGJ6QxRlAGlhfqO4EWtSd
+Kc4UHmlMFXgCuNrV9ZbnelD2L42+DYuvDMEssaLBkfTRc8C4e1mdeBIcHQL/jbr
8zsWMKhF4H4h0u2l+YuYl13c17Rv892JHXJsBuIPaghw0gX68OvaSqj3goIwA9eF
CvS9yLl5as6hmR/4yi4t
=IAQW
-----END PGP SIGNATURE-----

--F4+N/OgRSdC8YnqX--

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S1755416AbcHSPvF (ORCPT <rfc822;w@1wt.eu>);
        Fri, 19 Aug 2016 11:51:05 -0400
Received: from mail-wm0-f65.google.com ([74.125.82.65]:34058 "EHLO
        mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
        with ESMTP id S1754215AbcHSPvD (ORCPT
        <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 19 Aug 2016 11:51:03 -0400
Date: Fri, 19 Aug 2016 18:50:55 +0300
From: Leon Romanovsky <leonro@mellanox.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 18/22] IB/mlx4/mcg: Remove deprecated
 create_singlethread_workqueue
Message-ID: <20160819155055.GK18515@leon.nu>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
 <4045f5014733b227e085c76f00f9ecf7f6266803.1471283718.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="1y1tiN5hVw5cPBDe"
Content-Disposition: inline
In-Reply-To: <4045f5014733b227e085c76f00f9ecf7f6266803.1471283718.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org


--1y1tiN5hVw5cPBDe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 15, 2016 at 11:43:35PM +0530, Bhaktipriya Shridhar wrote:
> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
>=20
> The workqueue "mcg_wq" queues work items &group->work
> and &group->timeout_work.
>=20
> The workqueue "clean_wq" queues work item mcg_clean_task.
>=20
> Both have been identity converted.
>=20
> WQ_MEM_RECLAIM has been set to ensure forward progress under
> memory pressure.
>=20
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
> ---

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

>  drivers/infiniband/hw/mlx4/mcg.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>=20
> diff --git a/drivers/infiniband/hw/mlx4/mcg.c b/drivers/infiniband/hw/mlx=
4/mcg.c
> index 8f7ad07..7d30be0 100644
> --- a/drivers/infiniband/hw/mlx4/mcg.c
> +++ b/drivers/infiniband/hw/mlx4/mcg.c
> @@ -1045,7 +1045,7 @@ int mlx4_ib_mcg_port_init(struct mlx4_ib_demux_ctx =
*ctx)
>=20
>  	atomic_set(&ctx->tid, 0);
>  	sprintf(name, "mlx4_ib_mcg%d", ctx->port);
> -	ctx->mcg_wq =3D create_singlethread_workqueue(name);
> +	ctx->mcg_wq =3D alloc_ordered_workqueue(name, WQ_MEM_RECLAIM);
>  	if (!ctx->mcg_wq)
>  		return -ENOMEM;
>=20
> @@ -1246,7 +1246,7 @@ void clean_vf_mcast(struct mlx4_ib_demux_ctx *ctx, =
int slave)
>=20
>  int mlx4_ib_mcg_init(void)
>  {
> -	clean_wq =3D create_singlethread_workqueue("mlx4_ib_mcg");
> +	clean_wq =3D alloc_ordered_workqueue("mlx4_ib_mcg", WQ_MEM_RECLAIM);
>  	if (!clean_wq)
>  		return -ENOMEM;
>=20
> --
> 2.1.4
>=20
> --
> 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

--1y1tiN5hVw5cPBDe
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXtyrfAAoJEORje4g2clinIeYP/3gd8EvnRHYhFBfnIU82uMZw
4yn/yo2MVyK7ALEo+Es30wbao4NkPyWj/SZhoBm1tc7A2uusqLhJ2suQjQ8hAUCM
iN68nNt9RPsZgv5GODDO1w4z0mhB6g+plPb2GtxTBJfr+gCKm6lR5CPmKe+f+Bzk
bF7aRuAGiV+GwaIFCB4HCALgoUdD1DBXNgw6f/Uh8FO8Tzz5kRrJcRQ3sgMauoK5
SMWyoLR06mMU6zvOyhg/cXieQdlwaeUW2A+78+rpFNjg/Ibgu+jbzaF4UbMTPvpg
73NTxp1N+owNHH4ieO8YU8IHGa12f9P84/Aq32vF7iDhDbnhVqbSPuxH0wwVToSZ
Tdd6zIF+91fDQ9mde4Pjp0Zg2hGvwQm5i+PhmWFTN++QCeFSgQeJnRSFH/ULA1XI
Tdjs9qiKOtgfpKbclyhQQ1SPfHAcdD3XdxhRELhRkZnr9l5AOijktmHKECM8TwdL
UzVQVpvoHSagOdbZ2l/kdpPrOWS3ux2Pt47WSVB9m9+u0UeJHmZjSkkZgexVc1YN
z0HP9xb4eHRWOudjtmWoptnK8ur5juyRrm7Vos0KezTUTCnlJag1WfAT0TC/ERkc
1j94YmtMvqiErarGDGvkdqyLQ+wBww56XfOmP7w1ItrxGtCw7wBs1QMS0Lr1s33V
aKeSXNO6zEWczerJUuPg
=K5FG
-----END PGP SIGNATURE-----

--1y1tiN5hVw5cPBDe--

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S1755549AbcHSPwC (ORCPT <rfc822;w@1wt.eu>);
        Fri, 19 Aug 2016 11:52:02 -0400
Received: from mail-wm0-f66.google.com ([74.125.82.66]:35922 "EHLO
        mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
        with ESMTP id S1754510AbcHSPvz (ORCPT
        <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 19 Aug 2016 11:51:55 -0400
Date: Fri, 19 Aug 2016 18:51:30 +0300
From: Leon Romanovsky <leonro@mellanox.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Cc: Yishai Hadas <yishaih@mellanox.com>,
        Doug Ledford <dledford@redhat.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>, linux-rdma@vger.kernel.org,
        linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 22/22] IB/mlx4/alias_GUID: Remove deprecated
 create_singlethread_workqueue
Message-ID: <20160819155130.GL18515@leon.nu>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
 <d3a5db9481e09376cc6200de187e451a582c6722.1471283718.git.bhaktipriya96@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="Bzq2cJcN05fcPrs+"
Content-Disposition: inline
In-Reply-To: <d3a5db9481e09376cc6200de187e451a582c6722.1471283718.git.bhaktipriya96@gmail.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org


--Bzq2cJcN05fcPrs+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 15, 2016 at 11:45:06PM +0530, Bhaktipriya Shridhar wrote:
> alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces
> deprecated create_singlethread_workqueue(). This is the identity
> conversion.
>=20
> The workqueue "wq" queues work item that maps to alias_guid_work.
> It has been identity converted.
>=20
> WQ_MEM_RECLAIM has been set to ensure forward progress under
> memory pressure.
>=20
> Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>

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

> ---
>  drivers/infiniband/hw/mlx4/alias_GUID.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/drivers/infiniband/hw/mlx4/alias_GUID.c b/drivers/infiniband=
/hw/mlx4/alias_GUID.c
> index c74ef26..5e99390 100644
> --- a/drivers/infiniband/hw/mlx4/alias_GUID.c
> +++ b/drivers/infiniband/hw/mlx4/alias_GUID.c
> @@ -881,7 +881,7 @@ int mlx4_ib_init_alias_guid_service(struct mlx4_ib_de=
v *dev)
>=20
>  		snprintf(alias_wq_name, sizeof alias_wq_name, "alias_guid%d", i);
>  		dev->sriov.alias_guid.ports_guid[i].wq =3D
> -			create_singlethread_workqueue(alias_wq_name);
> +			alloc_ordered_workqueue(alias_wq_name, WQ_MEM_RECLAIM);
>  		if (!dev->sriov.alias_guid.ports_guid[i].wq) {
>  			ret =3D -ENOMEM;
>  			goto err_thread;
> --
> 2.1.4
>=20
> --
> 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

--Bzq2cJcN05fcPrs+
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJXtysCAAoJEORje4g2clinTlEQALqI3AmNnh+/1pIYv4x6iSMo
LA3CR07XaOcHHux1orVjrFd3VRtAJRBq59APY79o/52MXtX+ol5xQbhYqhlr2d+v
P1a19Fw6uxqOtpCO6bwPBXx2FuDE5NeOND2jSvS90iGuEct+DJZjtz85Vb1FCsI9
lH/dSK+g6vi4WS1oPRzKTXCMypbofYP+T6iOtz7JwrWByHb55eu5JII/92l+uQ7f
qo9jPd9QFUzRoqbsI87p08SP3XBWhZg9kTnSXa7vjL8L9HKjOAk5V697f01ddgs+
hQtEb0WVyyZWS9W7mMjacIV8B4QM2G2bm4Yp/bNEW9Y5x5mGwMwHNga47dmEcZ4f
zZlxsX52Lq74tBAqUx9xqUqxChRBv2ah5Cv7KiRUpi7lExbHRWQaZl4lB+0nFXvd
gwq9S72i0aAAcNHyteIz5ziLRRSfS7tAsURHZvNlMKhmHhOKX6IuPLcLCDw8xiPi
ehoOe8QUfzhA4md6mtm4Y81dgR1jg/7NK0ODHrgq9EkewH/KV/q4dPubomrzMeAr
lE/ezsEByqnQtOfuUyTiiWx1TLbXInAWM/mIxTHoilEIOVzGUEpTypa6msBHphRK
OYtnqVYn+q8rpyL8ZKwIGWaeSi9VygRXXDKEC9O+ZWV9BX6eyCce8kxXqABBD2nX
O9m1z8l5S+dpcmKEs4I3
=Cchd
-----END PGP SIGNATURE-----

--Bzq2cJcN05fcPrs+--

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <linux-kernel-owner@vger.kernel.org>
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
        id S965101AbcIPR1B (ORCPT <rfc822;w@1wt.eu>);
        Fri, 16 Sep 2016 13:27:01 -0400
Received: from mx1.redhat.com ([209.132.183.28]:41734 "EHLO mx1.redhat.com"
        rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP
        id S964961AbcIPR0t (ORCPT <rfc822;linux-kernel@vger.kernel.org>);
        Fri, 16 Sep 2016 13:26:49 -0400
Subject: Re: [PATCH 00/22] Remove deprecated create_workqueue instances
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>,
        Yishai Hadas <yishaih@mellanox.com>, Sean Hefty <sean.hefty@intel.com>,
        Hal Rosenstock <hal.rosenstock@gmail.com>,
        Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
        Leon Romanovsky <leonro@mellanox.com>,
        Chuck Lever <chuck.lever@oracle.com>, Mark Bloch <markb@mellanox.com>,
        Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
        Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
        Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
        Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
        Or Gerlitz <ogerlitz@mellanox.com>,
        Faisal Latif <faisal.latif@intel.com>,
        Matan Barak <matanb@mellanox.com>,
        Chien Tin Tung <chien.tin.tung@intel.com>,
        Mustafa Ismail <mustafa.ismail@intel.com>,
        Shiraz Saleem <shiraz.saleem@intel.com>,
        Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
        Steve Wise <swise@chelsio.com>,
        Mike Marciniszyn <infinipath@intel.com>,
        Bart Van Assche <bart.vanassche@sandisk.com>,
        Yotam Kenneth <yotamke@mellanox.com>,
        Somnath Kotur <Somnath.Kotur@Avagotech.Com>,
        Moni Shoua <monis@mellanox.com>,
        Shachar Raindel <raindel@mellanox.com>,
        Parav Pandit <pandit.parav@gmail.com>,
        Sagi Grimberg <sagi@grimberg.me>,
        Christoph Hellwig <hch@infradead.org>,
        Dean Luick <dean.luick@intel.com>, Ira Weiny <ira.weiny@intel.com>,
        Kaike Wan <kaike.wan@intel.com>
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
        Tejun Heo <tj@kernel.org>
From: Doug Ledford <dledford@redhat.com>
Message-ID: <67bc634b-80c9-7848-2859-e39652daeb53@redhat.com>
Date: Fri, 16 Sep 2016 13:26:26 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.3.0
MIME-Version: 1.0
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="AFKc72sN6tn2wUFUXpqq2IWRago45L0gh"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 16 Sep 2016 17:26:48 +0000 (UTC)
Sender: linux-kernel-owner@vger.kernel.org
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--AFKc72sN6tn2wUFUXpqq2IWRago45L0gh
Content-Type: multipart/mixed; boundary="72iI65baB6AL6qbIfvQ14pfmEmPbhAOmr";
 protected-headers="v1"
From: Doug Ledford <dledford@redhat.com>
To: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>,
 Yishai Hadas <yishaih@mellanox.com>, Sean Hefty <sean.hefty@intel.com>,
 Hal Rosenstock <hal.rosenstock@gmail.com>,
 Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
 Leon Romanovsky <leonro@mellanox.com>, Chuck Lever <chuck.lever@oracle.com>,
 Mark Bloch <markb@mellanox.com>,
 Hans Westgaard Ry <hans.westgaard.ry@oracle.com>,
 Christoph Lameter <cl@linux.com>, Erez Shitrit <erezsh@mellanox.com>,
 Haggai Eran <haggaie@mellanox.com>, Florian Westphal <fw@strlen.de>,
 Guy Shapiro <guysh@mellanox.com>, Eli Cohen <eli@mellanox.com>,
 Or Gerlitz <ogerlitz@mellanox.com>, Faisal Latif <faisal.latif@intel.com>,
 Matan Barak <matanb@mellanox.com>, Chien Tin Tung
 <chien.tin.tung@intel.com>, Mustafa Ismail <mustafa.ismail@intel.com>,
 Shiraz Saleem <shiraz.saleem@intel.com>,
 Tatyana Nikolova <tatyana.e.nikolova@intel.com>,
 Steve Wise <swise@chelsio.com>, Mike Marciniszyn <infinipath@intel.com>,
 Bart Van Assche <bart.vanassche@sandisk.com>,
 Yotam Kenneth <yotamke@mellanox.com>,
 Somnath Kotur <Somnath.Kotur@Avagotech.Com>, Moni Shoua
 <monis@mellanox.com>, Shachar Raindel <raindel@mellanox.com>,
 Parav Pandit <pandit.parav@gmail.com>, Sagi Grimberg <sagi@grimberg.me>,
 Christoph Hellwig <hch@infradead.org>, Dean Luick <dean.luick@intel.com>,
 Ira Weiny <ira.weiny@intel.com>, Kaike Wan <kaike.wan@intel.com>
Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
 Tejun Heo <tj@kernel.org>
Message-ID: <67bc634b-80c9-7848-2859-e39652daeb53@redhat.com>
Subject: Re: [PATCH 00/22] Remove deprecated create_workqueue instances
References: <cover.1471283717.git.bhaktipriya96@gmail.com>
In-Reply-To: <cover.1471283717.git.bhaktipriya96@gmail.com>

--72iI65baB6AL6qbIfvQ14pfmEmPbhAOmr
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 8/15/2016 1:57 PM, Bhaktipriya Shridhar wrote:
> This patch set removes the instances of deprecated
> create_singlethread_workqueue (scheduled for removal) in
> drivers/infiniband by making the appropriate conversions.
>=20
> Bhaktipriya Shridhar (22):
>   IB/sa : Remove deprecated create_singlethread_workqueue
>   IB/mad: Remove deprecated create_singlethread_workqueue
>   IB/multicast: Remove deprecated create_singlethread_workqueue
>   IB/ucma: Remove deprecated create_singlethread_workqueue
>   IB/cma: Remove deprecated create_singlethread_workqueue
>   IB/addr: Remove deprecated create_singlethread_workqueue
>   IB/iwcm: Remove deprecated create_singlethread_workqueue
>   iw_cxgb3: Remove deprecated create_singlethread_workqueue
>   IB/qib: Remove deprecated create_singlethread_workqueue
>   iw_cxgb4: Remove deprecated create_singlethread_workqueue
>   IB/mthca: Remove deprecated create_singlethread_workqueue
>   i40iw_main: Remove deprecated create_singlethread_workqueue
>   i40iw_cm: Remove deprecated create_singlethread_workqueue
>   IB/mlx5: Remove deprecated create_singlethread_workqueue
>   IB/mlx5/odp: Remove deprecated create_singlethread_workqueue
>   IB/mlx4: Remove deprecated create_singlethread_workqueue
>   IB/mlx4/mad: Remove deprecated create_singlethread_workqueue
>   IB/mlx4/mcg: Remove deprecated create_singlethread_workqueue
>   IB/nes: Remove deprecated create_singlethread_workqueue
>   IB/ipoib: Remove deprecated create_singlethread_workqueue
>   IB/ipoib_verbs: Remove deprecated create_singlethread_workqueue
>   IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue
>=20
>  drivers/infiniband/core/addr.c             | 2 +-
>  drivers/infiniband/core/cma.c              | 2 +-
>  drivers/infiniband/core/iwcm.c             | 2 +-
>  drivers/infiniband/core/mad.c              | 2 +-
>  drivers/infiniband/core/multicast.c        | 2 +-
>  drivers/infiniband/core/sa_query.c         | 2 +-
>  drivers/infiniband/core/ucma.c             | 3 ++-
>  drivers/infiniband/hw/cxgb3/iwch_cm.c      | 2 +-
>  drivers/infiniband/hw/cxgb4/cm.c           | 2 +-
>  drivers/infiniband/hw/i40iw/i40iw_cm.c     | 7 +++++--
>  drivers/infiniband/hw/i40iw/i40iw_main.c   | 2 +-
>  drivers/infiniband/hw/mlx4/alias_GUID.c    | 2 +-
>  drivers/infiniband/hw/mlx4/mad.c           | 4 ++--
>  drivers/infiniband/hw/mlx4/main.c          | 2 +-
>  drivers/infiniband/hw/mlx4/mcg.c           | 4 ++--
>  drivers/infiniband/hw/mlx5/mr.c            | 2 +-
>  drivers/infiniband/hw/mlx5/odp.c           | 4 ++--
>  drivers/infiniband/hw/mthca/mthca_catas.c  | 2 +-
>  drivers/infiniband/hw/nes/nes_cm.c         | 4 ++--
>  drivers/infiniband/hw/qib/qib_init.c       | 4 ++--
>  drivers/infiniband/ulp/ipoib/ipoib_main.c  | 3 ++-
>  drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 2 +-
>  22 files changed, 33 insertions(+), 28 deletions(-)
>=20
> --
> 2.1.4
>=20

The commit message of patch 20/22 was not matching what you actually
did.  I fixed that up (the commit message, the patch was right), then
series applied.

--=20
Doug Ledford <dledford@redhat.com>
    GPG Key ID: 0E572FDD


--72iI65baB6AL6qbIfvQ14pfmEmPbhAOmr--

--AFKc72sN6tn2wUFUXpqq2IWRago45L0gh
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJX3CtCAAoJELgmozMOVy/dgJwQALZcOYM0um7CgZxe5ESom6XX
3Dsu0alXHP+kn+Ogw8AiWaXMcu1PrPLkRA4tflMWIl/HBYpwMet2byU+027W3M65
pMMpSbmxjhvp8rHA2tpXYuK/DgsTsDooJrBTS99tozhZmW8UxvSSo74a1BXdERkL
vP5IEsEYFAzwW4LnS3NHZqxPfGu3cKtztYBA2Ytow/3kj/uIIr0nS5tdWeoYn+wD
YjEPeNlF2WoPCZBtsXsn1OUWUgapGjHPqZOU/ymlX4BlNSW+XXafHXLxevkyzCab
Nkcdlw0t981DYlRy701aCDPZNN2/eENwed20kYYxSHHVz6YmZgPXlJnhMwQHk53u
KXqgei6Oh0RLQQUEUTKcDn0IrQc/8X2wZnyfoyS2ez10qBrvdDhJLXAzlvQzPyQW
oWlLc2ZSRMRJqW7QeYHn3EGaYhWQbycO+EvepT5Va3zjz0FqDzD9Xn5UU796vK6X
/B5Dh5eMtQU3FOxFmDclfLKqM366VrLFigkZW8nE3iUYmsIXZy9MbnohVJo2lklF
xruQ24hZ603NyTh972arumP/rCwWfQGKUXn5oW3cF1TTEyHsvnWJCwYPm83iV4x+
RsyNOFQlUFedLZ908wl7lVA2EzV1wJ/Ig0j3BkPhV1huRH6ZMTiqfCjKBWl65W7+
ZFWEwz+VK1dtKeIA7Al/
=ZgOP
-----END PGP SIGNATURE-----

--AFKc72sN6tn2wUFUXpqq2IWRago45L0gh--

