[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YWUp0s6TD6R1cse8@unreal>
Date: Tue, 12 Oct 2021 09:23:14 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: dledford@...hat.com, jgg@...pe.ca, bharat@...lsio.com,
yishaih@...dia.com, bmt@...ich.ibm.com, 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>
> ---
> 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(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@...dia.com>
Powered by blists - more mailing lists