Messages in this thread | | | Date | Mon, 29 Jul 2013 20:52:59 +0800 | From | Shaohua Li <> | Subject | Re: [patch]workqueue: copy attr with all fields. |
| |
On Mon, Jul 29, 2013 at 07:14:01AM -0400, Tejun Heo wrote: > Hello, Shaohua. > > On Mon, Jul 29, 2013 at 02:24:12PM +0800, Shaohua Li wrote: > > copy_workqueue_attrs() forgets to copy no_numa field. > > Explaining how that affects things and how the behavior changes > afterwards would be nice. As it currently stands, I don't know why > you're submitting this patch. Is this a bug fix? Just a consistency > update? Should it be marked with -stable? > > Please put more effort into patch descriptions and also note that > ->no_numa isn't a pool attribute as noted in the comment above struct > workqueue_attrs definition.
Ah, ok, I thought it's straightforward... It's a bug fix. echo '0' > /sys/bus/workqueue/devices/xxx/numa cat /sys/bus/workqueue/devices/xxx/numa I got 1. It should be 0, the reason is copy_workqueue_attrs() called in apply_workqueue_attrs() doesn't copy no_numa field.
Thanks, Shaohua
| |