Re: [PATCH V2] block/ndb: add WQ_UNBOUND to the knbd-recv workqueue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
> ---
>  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@xxxxxx>

once you've made that adjustment.  Thanks,

Josef



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux