| 1 | |
| 2 | |
| 3 |
|
| 4 | |
| 5 | ksft_skip=4
|
| 6 |
|
| 7 | |
| 8 | if ! /sbin/modprobe -q -n test-ww_mutex; then
|
| 9 | echo "ww_mutex: module test-ww_mutex is not found [SKIP]"
|
| 10 | exit $ksft_skip
|
| 11 | fi
|
| 12 |
|
| 13 | if /sbin/modprobe -q test-ww_mutex; then
|
| 14 | /sbin/modprobe -q -r test-ww_mutex
|
| 15 | echo "locking/ww_mutex: ok"
|
| 16 | else
|
| 17 | echo "locking/ww_mutex: [FAIL]"
|
| 18 | exit 1
|
| 19 | fi
|