/* cmm_reboot_notifier - Make sure pages are not still marked as "loaned"  */
static int cmm_reboot_notifier(struct notifier_block *nb, unsigned long action, void *unused)
/* cmm_reboot_notifier - Make sure pages are not still marked as "loaned"  */
static int cmm_reboot_notifier(struct notifier_block *nb, unsigned long action, void *unused)
{
	if (action == SYS_RESTART) {
		if (cmm_thread_ptr)
			kthread_stop(cmm_thread_ptr);
		cmm_thread_ptr = NULL;
		cmm_free_pages(loaned_pages);
	}
	return NOTIFY_DONE;
}