Re: [PATCH -v2 -tip] fix race between stop_two_cpus and stop_cpus

2013-11-01 Thread Prarit Bhargava
On 11/01/2013 10:47 AM, Mel Gorman wrote: > On Fri, Nov 01, 2013 at 10:41:46AM -0400, Rik van Riel wrote: >> Subject: fix race between stop_two_cpus and stop_cpus >> >> There is a race between stop_two_cpus, and the global stop_cpus. >> >> It is possible for two CPUs to get their stopper

Re: [PATCH -v2 -tip] fix race between stop_two_cpus and stop_cpus

2013-11-01 Thread Prarit Bhargava
On 11/01/2013 10:47 AM, Mel Gorman wrote: > On Fri, Nov 01, 2013 at 10:41:46AM -0400, Rik van Riel wrote: >> Subject: fix race between stop_two_cpus and stop_cpus >> >> There is a race between stop_two_cpus, and the global stop_cpus. >> >> It is possible for two CPUs to get their stopper

Re: [PATCH -v2 -tip] fix race between stop_two_cpus and stop_cpus

2013-11-01 Thread Mel Gorman
On Fri, Nov 01, 2013 at 10:41:46AM -0400, Rik van Riel wrote: > Subject: fix race between stop_two_cpus and stop_cpus > > There is a race between stop_two_cpus, and the global stop_cpus. > > It is possible for two CPUs to get their stopper functions queued > "backwards" from one another,

[PATCH -v2 -tip] fix race between stop_two_cpus and stop_cpus

2013-11-01 Thread Rik van Riel
Subject: fix race between stop_two_cpus and stop_cpus There is a race between stop_two_cpus, and the global stop_cpus. It is possible for two CPUs to get their stopper functions queued "backwards" from one another, resulting in the stopper threads getting stuck, and the system hanging. This can

[PATCH -v2 -tip] fix race between stop_two_cpus and stop_cpus

2013-11-01 Thread Rik van Riel
Subject: fix race between stop_two_cpus and stop_cpus There is a race between stop_two_cpus, and the global stop_cpus. It is possible for two CPUs to get their stopper functions queued backwards from one another, resulting in the stopper threads getting stuck, and the system hanging. This can

Re: [PATCH -v2 -tip] fix race between stop_two_cpus and stop_cpus

2013-11-01 Thread Mel Gorman
On Fri, Nov 01, 2013 at 10:41:46AM -0400, Rik van Riel wrote: Subject: fix race between stop_two_cpus and stop_cpus There is a race between stop_two_cpus, and the global stop_cpus. It is possible for two CPUs to get their stopper functions queued backwards from one another, resulting in

Re: [PATCH -v2 -tip] fix race between stop_two_cpus and stop_cpus

2013-11-01 Thread Prarit Bhargava
On 11/01/2013 10:47 AM, Mel Gorman wrote: On Fri, Nov 01, 2013 at 10:41:46AM -0400, Rik van Riel wrote: Subject: fix race between stop_two_cpus and stop_cpus There is a race between stop_two_cpus, and the global stop_cpus. It is possible for two CPUs to get their stopper functions queued

Re: [PATCH -v2 -tip] fix race between stop_two_cpus and stop_cpus

2013-11-01 Thread Prarit Bhargava
On 11/01/2013 10:47 AM, Mel Gorman wrote: On Fri, Nov 01, 2013 at 10:41:46AM -0400, Rik van Riel wrote: Subject: fix race between stop_two_cpus and stop_cpus There is a race between stop_two_cpus, and the global stop_cpus. It is possible for two CPUs to get their stopper functions queued