* [PATCH V2] block/ndb: add WQ_UNBOUND to the knbd-recv workqueue
@ 2017-09-18 19:56 Dan Melnic
2017-09-18 19:58 ` Josef Bacik
0 siblings, 1 reply; 2+ messages in thread
From: Dan Melnic @ 2017-09-18 19:56 UTC (permalink / raw)
To: josef, axboe, linux-block, Kernel-team
Add WQ_UNBOUND to the knbd-recv workqueue so we're not bound
to a single CPU that is selected at device creation time.
Signed-off-by: Dan Melnic <dmm@fb.com>
---
drivers/block/nbd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 2aa87cb..ac3c5ecc 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -2080,7 +2080,9 @@ static int __init nbd_init(void)
if (nbds_max > 1UL << (MINORBITS - part_shift))
return -EINVAL;
recv_workqueue = alloc_workqueue("knbd-recv",
- WQ_MEM_RECLAIM | WQ_HIGHPRI, 0);
+ WQ_MEM_RECLAIM | WQ_HIGHPRI |
+ WQ_UNBOUND,
+ 0);
if (!recv_workqueue)
return -ENOMEM;
--
2.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH V2] block/ndb: add WQ_UNBOUND to the knbd-recv workqueue
2017-09-18 19:56 [PATCH V2] block/ndb: add WQ_UNBOUND to the knbd-recv workqueue Dan Melnic
@ 2017-09-18 19:58 ` Josef Bacik
0 siblings, 0 replies; 2+ messages in thread
From: Josef Bacik @ 2017-09-18 19:58 UTC (permalink / raw)
To: Dan Melnic; +Cc: josef, axboe, linux-block, Kernel-team
On Mon, Sep 18, 2017 at 12:56:17PM -0700, Dan Melnic wrote:
> Add WQ_UNBOUND to the knbd-recv workqueue so we're not bound
> to a single CPU that is selected at device creation time.
>
> Signed-off-by: Dan Melnic <dmm@fb.com>
> ---
> drivers/block/nbd.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
> index 2aa87cb..ac3c5ecc 100644
> --- a/drivers/block/nbd.c
> +++ b/drivers/block/nbd.c
> @@ -2080,7 +2080,9 @@ static int __init nbd_init(void)
> if (nbds_max > 1UL << (MINORBITS - part_shift))
> return -EINVAL;
> recv_workqueue = alloc_workqueue("knbd-recv",
> - WQ_MEM_RECLAIM | WQ_HIGHPRI, 0);
> + WQ_MEM_RECLAIM | WQ_HIGHPRI |
> + WQ_UNBOUND,
> + 0);
This can go on the line above. You can add
Reviewed-by: Josef Bacik <jbacik@fb.com>
once you've made that adjustment. Thanks,
Josef
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-18 19:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-18 19:56 [PATCH V2] block/ndb: add WQ_UNBOUND to the knbd-recv workqueue Dan Melnic
2017-09-18 19:58 ` Josef Bacik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox