From: Mike Christie <michael.christie@oracle.com>
To: Bob Liu <bob.liu@oracle.com>, linux-scsi@vger.kernel.org
Cc: open-iscsi@googlegroups.com, martin.petersen@oracle.com,
lduncan@suse.com, cleech@redhat.com
Subject: Re: [PATCH] scsi: iscsi: register sysfs for workqueue iscsi_destroy
Date: Fri, 3 Jul 2020 22:59:00 -0500 [thread overview]
Message-ID: <a34c8886-a6dc-4ce0-5ffd-a09d913daa5d@oracle.com> (raw)
In-Reply-To: <20200703051603.1473-1-bob.liu@oracle.com>
On 7/3/20 12:16 AM, Bob Liu wrote:
> Register sysfs for workqueue iscsi_destroy, so that users can set cpu affinity
> through "cpumask" for this workqueue to get better isolation in cloud
> multi-tenant scenario.
>
> This patch unfolded create_singlethread_workqueue(), added WQ_SYSFS and drop
> __WQ_ORDERED_EXPLICIT since __WQ_ORDERED_EXPLICIT workqueue isn't allowed to
> change "cpumask".
>
> Suggested-by: Mike Christie <michael.christie@oracle.com>
> Signed-off-by: Bob Liu <bob.liu@oracle.com>
> ---
> drivers/scsi/scsi_transport_iscsi.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
> index 7ae5024..aa8d4a3 100644
> --- a/drivers/scsi/scsi_transport_iscsi.c
> +++ b/drivers/scsi/scsi_transport_iscsi.c
> @@ -4766,7 +4766,9 @@ static __init int iscsi_transport_init(void)
> goto release_nls;
> }
>
> - iscsi_destroy_workq = create_singlethread_workqueue("iscsi_destroy");
> + iscsi_destroy_workq = alloc_workqueue("%s",
> + WQ_SYSFS | __WQ_LEGACY | WQ_MEM_RECLAIM | WQ_UNBOUND,
> + 1, "iscsi_destroy");
> if (!iscsi_destroy_workq) {
> err = -ENOMEM;
> goto destroy_wq;
>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
next prev parent reply other threads:[~2020-07-04 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-03 5:16 [PATCH] scsi: iscsi: register sysfs for workqueue iscsi_destroy Bob Liu
2020-07-03 18:28 ` Lee Duncan
2020-07-04 3:59 ` Mike Christie [this message]
2020-07-05 1:28 ` Lee Duncan
2020-07-08 6:06 ` 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=a34c8886-a6dc-4ce0-5ffd-a09d913daa5d@oracle.com \
--to=michael.christie@oracle.com \
--cc=bob.liu@oracle.com \
--cc=cleech@redhat.com \
--cc=lduncan@suse.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=open-iscsi@googlegroups.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