diff options
author | Mel Gorman <mgorman@suse.de> | 2014-01-21 18:50:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 19:19:48 -0500 |
commit | 1c5e9c27cbd966c7f0038698d5dcd5ada3574f47 (patch) | |
tree | a546cec0019aa3b726ba06e50ce38f960ee8f222 /include/linux/mmzone.h | |
parent | 1c30e0177e4f41a11cb88b0f1f056ccebfe0fff4 (diff) |
mm: numa: limit scope of lock for NUMA migrate rate limiting
NUMA migrate rate limiting protects a migration counter and window using
a lock but in some cases this can be a contended lock. It is not
critical that the number of pages be perfect, lost updates are
acceptable. Reduce the importance of this lock.
Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Alex Thorlton <athorlton@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r-- | include/linux/mmzone.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 67ab5febabf7..5f2052c83154 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -764,10 +764,7 @@ typedef struct pglist_data { | |||
764 | int kswapd_max_order; | 764 | int kswapd_max_order; |
765 | enum zone_type classzone_idx; | 765 | enum zone_type classzone_idx; |
766 | #ifdef CONFIG_NUMA_BALANCING | 766 | #ifdef CONFIG_NUMA_BALANCING |
767 | /* | 767 | /* Lock serializing the migrate rate limiting window */ |
768 | * Lock serializing the per destination node AutoNUMA memory | ||
769 | * migration rate limiting data. | ||
770 | */ | ||
771 | spinlock_t numabalancing_migrate_lock; | 768 | spinlock_t numabalancing_migrate_lock; |
772 | 769 | ||
773 | /* Rate limiting time interval */ | 770 | /* Rate limiting time interval */ |