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

13
rootfs_overlay/insrm.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
# Insert and remove a module n times to check for spurious errors / deadlocks.
set -e
mod="$1"
n="${2:-1}"
i=0
while [ $i -lt $n ]; do
echo "insmod $i"
insmod "/$mod.ko"
echo "rmmod $i"
rmmod "$mod"
i=$(($i+1))
done

View File

@@ -1,9 +0,0 @@
#!/bin/sh
# Got a few kernel crashes after insert / remove, so let's do this a few times.
insmod /workqueue_cheat.ko
rmmod workqueue_cheat
insmod /workqueue_cheat.ko
rmmod workqueue_cheat
insmod /workqueue_cheat.ko
rmmod workqueue_cheat