From: "Paraschiv, Andra-Irina" <andraprs@amazon.com>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: <linux-kernel@vger.kernel.org>, <kernel-janitors@vger.kernel.org>,
<lexnv@amazon.com>, <alcioa@amazon.com>,
Greg KH <gregkh@linuxfoundation.org>,
Kamal Mostafa <kamal@canonical.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
Stefano Garzarella <sgarzare@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>,
"ne-devel-upstream@amazon.com" <ne-devel-upstream@amazon.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [PATCH] nitro_enclaves: Remove redundant 'flush_workqueue()' calls
Date: Sat, 13 Nov 2021 14:44:30 +0200 [thread overview]
Message-ID: <d4a029e4-bb44-b066-598e-17bbd3ae8bed@amazon.com> (raw)
In-Reply-To: <d57f5c7e362837a8dfcde0d726a76b56f114e619.1636736947.git.christophe.jaillet@wanadoo.fr>
On 12/11/2021 19:09, 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@wanadoo.fr>
> ---
> drivers/virt/nitro_enclaves/ne_pci_dev.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/virt/nitro_enclaves/ne_pci_dev.c b/drivers/virt/nitro_enclaves/ne_pci_dev.c
> index 40b49ec8e30b..6b81e8f3a5dc 100644
> --- a/drivers/virt/nitro_enclaves/ne_pci_dev.c
> +++ b/drivers/virt/nitro_enclaves/ne_pci_dev.c
> @@ -376,7 +376,6 @@ static void ne_teardown_msix(struct pci_dev *pdev)
> free_irq(pci_irq_vector(pdev, NE_VEC_EVENT), ne_pci_dev);
>
> flush_work(&ne_pci_dev->notify_work);
> - flush_workqueue(ne_pci_dev->event_wq);
> destroy_workqueue(ne_pci_dev->event_wq);
>
> free_irq(pci_irq_vector(pdev, NE_VEC_REPLY), ne_pci_dev);
> --
> 2.30.2
>
Thank you for the patch.
Reviewed-by: Andra Paraschiv <andraprs@amazon.com>
Thanks,
Andra
Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.
prev parent reply other threads:[~2021-11-13 12:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-12 17:09 Christophe JAILLET
2021-11-13 12:44 ` Paraschiv, Andra-Irina [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4a029e4-bb44-b066-598e-17bbd3ae8bed@amazon.com \
--to=andraprs@amazon.com \
--cc=alcioa@amazon.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=gregkh@linuxfoundation.org \
--cc=kamal@canonical.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=lexnv@amazon.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ne-devel-upstream@amazon.com \
--cc=pbonzini@redhat.com \
--cc=sgarzare@redhat.com \
--cc=stefanha@redhat.com \
--cc=vkuznets@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®