mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
fix wait_queue rmmod deadlock, wait_queue2, add insrm.sh that was used to test wait_queue lock, which obsoletes workqueue_cheat.sh
This commit is contained in:
@@ -28,8 +28,6 @@ static int kthread_wake_func(void *data)
|
||||
wake_up(&queue);
|
||||
i++;
|
||||
}
|
||||
i = !i;
|
||||
wake_up_interruptible(&queue);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -73,7 +71,7 @@ int init_module(void)
|
||||
|
||||
void cleanup_module(void)
|
||||
{
|
||||
kthread_stop(kthread_wake);
|
||||
kthread_stop(kthread_sleep1);
|
||||
kthread_stop(kthread_sleep2);
|
||||
kthread_stop(kthread_sleep1);
|
||||
kthread_stop(kthread_wake);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user