[PATCH] zswap: only use CPU notifier when HOTPLUG_CPU=y

2016-11-11 Thread Yu Zhao
__unregister_cpu_notifier() only removes registered notifier from its linked list when CPU hotplug is configured. If we free registered CPU notifier when HOTPLUG_CPU=n, we corrupt the linked list. To fix the problem, we can either use a static CPU notifier that walks through each pool or just

[PATCH] zswap: only use CPU notifier when HOTPLUG_CPU=y

2016-11-11 Thread Yu Zhao
__unregister_cpu_notifier() only removes registered notifier from its linked list when CPU hotplug is configured. If we free registered CPU notifier when HOTPLUG_CPU=n, we corrupt the linked list. To fix the problem, we can either use a static CPU notifier that walks through each pool or just