From: John Garry <john.garry@huawei.com>
To: Cai Huoqing <caihuoqing@baidu.com>
Cc: Saurav Kashyap <skashyap@marvell.com>,
Javed Hasan <jhasan@marvell.com>,
<GR-QLogic-Storage-Upstream@marvell.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
<linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] scsi: bnx2fc: Make use of the helper macro kthread_run()
Date: Fri, 22 Oct 2021 11:49:08 +0100 [thread overview]
Message-ID: <834fa2cc-8a4a-b632-93bb-43d2dfdc4713@huawei.com> (raw)
In-Reply-To: <20211021084221.2342-1-caihuoqing@baidu.com>
On 21/10/2021 09:42, Cai Huoqing wrote:
> Repalce kthread_create/wake_up_process() with kthread_run()
Replace
> to simplify the code.
>
> Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
> ---
> drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> index 71fa62bd3083..975512511a60 100644
> --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
> @@ -2723,9 +2723,8 @@ static int __init bnx2fc_mod_init(void)
>
> bg = &bnx2fc_global;
> skb_queue_head_init(&bg->fcoe_rx_list);
> - l2_thread = kthread_create(bnx2fc_l2_rcv_thread,
> - (void *)bg,
> - "bnx2fc_l2_thread");
> + l2_thread = kthread_run(bnx2fc_l2_rcv_thread,
> + (void *)bg, "bnx2fc_l2_thread");
> if (IS_ERR(l2_thread)) {
> rc = PTR_ERR(l2_thread);
> goto free_wq;
Are you then supposed to remove the wake_up_process() call also (not shown)?
>
next prev parent reply other threads:[~2021-10-22 10:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-21 8:42 Cai Huoqing
2021-10-22 10:49 ` John Garry [this message]
2022-01-26 1:42 Yin Xiujiang
2022-02-08 4:52 ` Martin K. Petersen
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=834fa2cc-8a4a-b632-93bb-43d2dfdc4713@huawei.com \
--to=john.garry@huawei.com \
--cc=GR-QLogic-Storage-Upstream@marvell.com \
--cc=caihuoqing@baidu.com \
--cc=jejb@linux.ibm.com \
--cc=jhasan@marvell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=skashyap@marvell.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®