From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:40200 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbfDOOtm (ORCPT ); Mon, 15 Apr 2019 10:49:42 -0400 Date: Mon, 15 Apr 2019 10:49:39 -0400 From: Brian Foster Subject: Re: [PATCH 2/3] xfs: remove unused m_data_workqueue Message-ID: <20190415144936.GB4222@bfoster> References: <155529406249.243484.1307333973877627694.stgit@magnolia> <155529407512.243484.4836699205659210299.stgit@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <155529407512.243484.4836699205659210299.stgit@magnolia> Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org On Sun, Apr 14, 2019 at 07:07:55PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong > > Now that we're no longer using m_data_workqueue, remove it. > > Signed-off-by: Darrick J. Wong > --- Reviewed-by: Brian Foster > fs/xfs/xfs_mount.h | 1 - > fs/xfs/xfs_super.c | 10 +--------- > 2 files changed, 1 insertion(+), 10 deletions(-) > > > diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xfs_mount.h > index 110f927cf943..1d3a4b2bdc2f 100644 > --- a/fs/xfs/xfs_mount.h > +++ b/fs/xfs/xfs_mount.h > @@ -175,7 +175,6 @@ typedef struct xfs_mount { > struct xstats m_stats; /* per-fs stats */ > > struct workqueue_struct *m_buf_workqueue; > - struct workqueue_struct *m_data_workqueue; > struct workqueue_struct *m_unwritten_workqueue; > struct workqueue_struct *m_cil_workqueue; > struct workqueue_struct *m_reclaim_workqueue; > diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c > index f093ea244849..df917f41ca46 100644 > --- a/fs/xfs/xfs_super.c > +++ b/fs/xfs/xfs_super.c > @@ -838,15 +838,10 @@ xfs_init_mount_workqueues( > if (!mp->m_buf_workqueue) > goto out; > > - mp->m_data_workqueue = alloc_workqueue("xfs-data/%s", > - WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname); > - if (!mp->m_data_workqueue) > - goto out_destroy_buf; > - > mp->m_unwritten_workqueue = alloc_workqueue("xfs-conv/%s", > WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname); > if (!mp->m_unwritten_workqueue) > - goto out_destroy_data_iodone_queue; > + goto out_destroy_buf; > > mp->m_cil_workqueue = alloc_workqueue("xfs-cil/%s", > WQ_MEM_RECLAIM|WQ_FREEZABLE, 0, mp->m_fsname); > @@ -886,8 +881,6 @@ xfs_init_mount_workqueues( > destroy_workqueue(mp->m_cil_workqueue); > out_destroy_unwritten: > destroy_workqueue(mp->m_unwritten_workqueue); > -out_destroy_data_iodone_queue: > - destroy_workqueue(mp->m_data_workqueue); > out_destroy_buf: > destroy_workqueue(mp->m_buf_workqueue); > out: > @@ -903,7 +896,6 @@ xfs_destroy_mount_workqueues( > destroy_workqueue(mp->m_log_workqueue); > destroy_workqueue(mp->m_reclaim_workqueue); > destroy_workqueue(mp->m_cil_workqueue); > - destroy_workqueue(mp->m_data_workqueue); > destroy_workqueue(mp->m_unwritten_workqueue); > destroy_workqueue(mp->m_buf_workqueue); > } >