[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211012162016.GA3381697@nvidia.com>
Date: Tue, 12 Oct 2021 13:20:16 -0300
From: Jason Gunthorpe <jgg@...dia.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: dledford@...hat.com, bharat@...lsio.com, yishaih@...dia.com,
bmt@...ich.ibm.com, leon@...nel.org, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] RDMA: Remove redundant 'flush_workqueue()' calls
On Sun, Oct 10, 2021 at 04:08:10PM +0200, Christophe JAILLET wrote:
> 'destroy_workqueue()' already drains the queue before destroying it, so
> there is no need to flush it explicitly.
>
> Remove the redundant 'flush_workqueue()' calls.
>
> This was generated with coccinelle:
>
> @@
> expression E;
> @@
> - flush_workqueue(E);
> destroy_workqueue(E);
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> Reviewed-by: Leon Romanovsky <leonro@...dia.com>
> ---
> drivers/infiniband/core/sa_query.c | 1 -
> drivers/infiniband/hw/cxgb4/cm.c | 1 -
> drivers/infiniband/hw/cxgb4/device.c | 1 -
> drivers/infiniband/hw/mlx4/alias_GUID.c | 4 +---
> drivers/infiniband/sw/siw/siw_cm.c | 4 +---
> drivers/infiniband/ulp/ipoib/ipoib_main.c | 1 -
> 6 files changed, 2 insertions(+), 10 deletions(-)
Applied to for-next, thanks
Jason
Powered by blists - more mailing lists