Re: [RFC PATCH v2 2/8] mm: make zone_reclaim_stat updates thread-safe

2018-09-12 Thread Daniel Jordan
On 9/11/18 12:40 PM, Laurent Dufour wrote: On 11/09/2018 02:42, Daniel Jordan wrote: diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 32699b2dc52a..6d4c23a3069d 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h @@ -229,6 +229,12 @@ struct zone_reclaim_stat {

Re: [RFC PATCH v2 2/8] mm: make zone_reclaim_stat updates thread-safe

2018-09-11 Thread Laurent Dufour
On 11/09/2018 02:42, Daniel Jordan wrote: > lru_lock needs to be held to update the zone_reclaim_stat statistics. > Similar to the previous patch, this requirement again arises fairly > naturally because callers are holding lru_lock already. > > In preparation for allowing concurrent adds and remo

[RFC PATCH v2 2/8] mm: make zone_reclaim_stat updates thread-safe

2018-09-10 Thread Daniel Jordan
lru_lock needs to be held to update the zone_reclaim_stat statistics. Similar to the previous patch, this requirement again arises fairly naturally because callers are holding lru_lock already. In preparation for allowing concurrent adds and removes from the LRU, however, make concurrent updates t