On Tue, Jan 17, 2017 at 11:16:09PM +0100, Vlastimil Babka wrote: > This is a preparation for the following patch to make review simpler. While > the primary motivation is a bug fix, this could also save some cycles in the > fast path. > > Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx> To be clear, the fast path savings will be when cpusets are active even though that is still a good thing. Most of the time, they are disabled static branches. I see there were concerns raised that this would retry the kswapd paths but I don't really see the issue. The same wakeup could occur due to a cpuset switch with the existing retry. Even a potentially spurious wakeup of kswapd is ok if the slow paths were being hit anyway as kswapd is probably still awake from the first wakeup. If anything, the fact that kswapd wakeups ignore cpusets and potentially wakes kswapd on forbidden nodes is more problematic but not worth fixing. If kswapd needs to wake on a node outside the cpuset then it's going to be by some active process outside the cpuset some time in the future so; Acked-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> -- Mel Gorman SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>