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:
Ciro Santilli
2017-06-07 08:27:56 +01:00
parent d62826bee2
commit e496f5d538
4 changed files with 18 additions and 17 deletions

View File

@@ -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);
}