/* Stop the automatic memory scanning thread. This function must be called with the scan_mutex held.  */
static void stop_scan_thread(void)
/* Stop the automatic memory scanning thread. This function must be called with the scan_mutex held.  */
static void stop_scan_thread(void)
{
	if (scan_thread) {
		kthread_stop(scan_thread);
		scan_thread = NULL;
	}
}