]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm, page_alloc: remove unnecessary taking of a seqlock when cpusets are disabled
authorMel Gorman <mgorman@techsingularity.net>
Wed, 21 Oct 2015 22:03:06 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:06 +0000 (09:03 +1100)
commit5b5119ddbd2e12b5b1f36ae0ab2ea1d7e0f6546d
tree1e3fce6681d35f689e8a298f81571531ad85684f
parent7d45b7d8e68a74da364c4e4bcd50d83a0637d4b0
mm, page_alloc: remove unnecessary taking of a seqlock when cpusets are disabled

There is a seqcounter that protects against spurious allocation failures
when a task is changing the allowed nodes in a cpuset.  There is no need
to check the seqcounter until a cpuset exists.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vitaly Wool <vitalywool@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cpuset.h