Re: [PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-10 Thread Cody P Schafer
On 04/09/2013 11:22 PM, Gilad Ben-Yossef wrote: On Wed, Apr 10, 2013 at 9:19 AM, Gilad Ben-Yossef wrote: On Wed, Apr 10, 2013 at 2:28 AM, Cody P Schafer wrote: In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch is always set to a safe value (1) prior to updating high,

Re: [PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-10 Thread Gilad Ben-Yossef
On Wed, Apr 10, 2013 at 9:19 AM, Gilad Ben-Yossef wrote: > On Wed, Apr 10, 2013 at 2:28 AM, Cody P Schafer > wrote: >> In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch >> is always set to a safe value (1) prior to updating high, and ensure >> that high is fully updated

Re: [PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-10 Thread Gilad Ben-Yossef
On Wed, Apr 10, 2013 at 2:28 AM, Cody P Schafer wrote: > In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch > is always set to a safe value (1) prior to updating high, and ensure > that high is fully updated before setting the real value of batch. > > Suggested by Gilad

Re: [PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-10 Thread Gilad Ben-Yossef
On Wed, Apr 10, 2013 at 2:28 AM, Cody P Schafer c...@linux.vnet.ibm.com wrote: In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch is always set to a safe value (1) prior to updating high, and ensure that high is fully updated before setting the real value of batch.

Re: [PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-10 Thread Gilad Ben-Yossef
On Wed, Apr 10, 2013 at 9:19 AM, Gilad Ben-Yossef gi...@benyossef.com wrote: On Wed, Apr 10, 2013 at 2:28 AM, Cody P Schafer c...@linux.vnet.ibm.com wrote: In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch is always set to a safe value (1) prior to updating high, and

Re: [PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-10 Thread Cody P Schafer
On 04/09/2013 11:22 PM, Gilad Ben-Yossef wrote: On Wed, Apr 10, 2013 at 9:19 AM, Gilad Ben-Yossef gi...@benyossef.com wrote: On Wed, Apr 10, 2013 at 2:28 AM, Cody P Schafer c...@linux.vnet.ibm.com wrote: In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch is always set to a

[PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-09 Thread Cody P Schafer
In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch is always set to a safe value (1) prior to updating high, and ensure that high is fully updated before setting the real value of batch. Suggested by Gilad Ben-Yossef in this thread: https://lkml.org/lkml/2013/4/9/23

[PATCH v2 03/10] mm/page_alloc: insert memory barriers to allow async update of pcp batch and high

2013-04-09 Thread Cody P Schafer
In pageset_set_batch() and setup_pagelist_highmark(), ensure that batch is always set to a safe value (1) prior to updating high, and ensure that high is fully updated before setting the real value of batch. Suggested by Gilad Ben-Yossef gi...@benyossef.com in this thread: