Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-29 Thread joe . korty
On Tue, Nov 28, 2017 at 07:22:34PM -0500, Steven Rostedt wrote: > On Tue, 21 Nov 2017 10:33:17 -0500 > joe.ko...@concurrent-rt.com wrote: > > > On Tue, Nov 21, 2017 at 09:33:52AM -0500, joe.ko...@concurrent-rt.com wrote: > > > On Mon, Nov 20, 2017 at 11:57:51PM -0500, Steven Rostedt wrote: > > >

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-28 Thread Steven Rostedt
On Tue, 21 Nov 2017 10:33:17 -0500 joe.ko...@concurrent-rt.com wrote: > On Tue, Nov 21, 2017 at 09:33:52AM -0500, joe.ko...@concurrent-rt.com wrote: > > On Mon, Nov 20, 2017 at 11:57:51PM -0500, Steven Rostedt wrote: > > > On Mon, 20 Nov 2017 23:02:07 -0500 > > > Steven Rostedt wrote: > > > >

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-21 Thread joe . korty
On Tue, Nov 21, 2017 at 09:33:52AM -0500, joe.ko...@concurrent-rt.com wrote: > On Mon, Nov 20, 2017 at 11:57:51PM -0500, Steven Rostedt wrote: > > On Mon, 20 Nov 2017 23:02:07 -0500 > > Steven Rostedt wrote: > > > > > > > Ideally, I would like to stay close to what upstream -rt does. Would > > >

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-21 Thread joe . korty
On Mon, Nov 20, 2017 at 11:57:51PM -0500, Steven Rostedt wrote: > On Mon, 20 Nov 2017 23:02:07 -0500 > Steven Rostedt wrote: > > > > Ideally, I would like to stay close to what upstream -rt does. Would > > you be able to backport the 4.11-rt patch? > > > > I'm currently working on releasing 4.9

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-20 Thread Steven Rostedt
On Mon, 20 Nov 2017 23:02:07 -0500 Steven Rostedt wrote: > Ideally, I would like to stay close to what upstream -rt does. Would > you be able to backport the 4.11-rt patch? > > I'm currently working on releasing 4.9-rt and 4.4-rt with the latest > backports. I could easily add this one too. Sp

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-20 Thread Steven Rostedt
On Mon, 20 Nov 2017 11:30:40 -0500 joe.ko...@concurrent-rt.com wrote: > Hi Steve, > A quick perusal of 4.11.12-rt16 shows that it has an > entirely new version of migrate_disable which to me appears > correct. > > In that new implementation, migrate_enable() recalculates > p->nr_cpus_allowed when

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-20 Thread joe . korty
Hi Steve, A quick perusal of 4.11.12-rt16 shows that it has an entirely new version of migrate_disable which to me appears correct. In that new implementation, migrate_enable() recalculates p->nr_cpus_allowed when it switches the task back to using p->cpus_mask. This brings the two back into sync

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-17 Thread Steven Rostedt
On Wed, 15 Nov 2017 14:25:29 -0500 joe.ko...@concurrent-rt.com wrote: > 4.4.86-rt99's patch > > 0037-Intrduce-migrate_disable-cpu_light.patch > > introduces a place where a task's cpus_allowed mask is > updated without a corresponding update to nr_cpus_allowed. > > This path is executed when

[PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-15 Thread joe . korty
4.4.86-rt99's patch 0037-Intrduce-migrate_disable-cpu_light.patch introduces a place where a task's cpus_allowed mask is updated without a corresponding update to nr_cpus_allowed. This path is executed when task affinity is changed while migrate_disabled() is true. As there is no code present