mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 04:54:27 +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:
13
rootfs_overlay/insrm.sh
Executable file
13
rootfs_overlay/insrm.sh
Executable 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
|
||||
Reference in New Issue
Block a user