From: yangsheng Date: Wed, 27 Jul 2011 08:01:10 +0000 (+0800) Subject: LU-409 Oops: RIP: _spin_lock_irq+0x15/0x40 X-Git-Tag: 2.1.0-RC0~36 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=167f2a4ec9c577fcafa07ac5356708c3cc09bdea LU-409 Oops: RIP: _spin_lock_irq+0x15/0x40 Skip sanity test_68a since llite_loop module disabled in rhel6. Change-Id: I213b435e64ac3816f1a3d564522a8c8797fc387c Signed-off-by: Yang Sheng Reviewed-on: http://review.whamcloud.com/1150 Reviewed-by: Yu Jian Tested-by: Hudson Reviewed-by: Richard Henwood Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index fa33841..e5ed50d 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3897,6 +3897,8 @@ swap_used() { # test case for lloop driver, basic function test_68a() { [ "$UID" != 0 ] && skip_env "must run as root" && return + llite_lloop_enabled || \ + { skip_env "llite_lloop module disabled" && return; } trap cleanup_68 EXIT diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index aa0e463..28334dd 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -330,6 +330,20 @@ load_module() { fi } +llite_lloop_enabled() { + local n1=$(uname -r | cut -d. -f1) + local n2=$(uname -r | cut -d. -f2) + local n3=$(uname -r | cut -d- -f1 | cut -d. -f3) + + # load the llite_lloop module for < 2.6.32 kernels + if [[ $n1 -lt 2 ]] || [[ $n1 -eq 2 && $n2 -lt 6 ]] || \ + [[ $n1 -eq 2 && $n2 -eq 6 && $n3 -lt 32 ]] || \ + $LOAD_LLOOP; then + return 0 + fi + return 1 +} + load_modules_local() { if [ -n "$MODPROBE" ]; then # use modprobe @@ -372,21 +386,9 @@ load_modules_local() { load_module obdfilter/obdfilter fi - load_module_llite_lloop() { - local n1=$(uname -r | cut -d. -f1) - local n2=$(uname -r | cut -d. -f2) - local n3=$(uname -r | cut -d- -f1 | cut -d. -f3) - - # load the llite_lloop module for < 2.6.32 kernels - if [[ $n1 -lt 2 ]] || [[ $n1 -eq 2 && $n2 -lt 6 ]] || \ - [[ $n1 -eq 2 && $n2 -eq 6 && $n3 -lt 32 ]] || \ - $LOAD_LLOOP; then - load_module llite/llite_lloop - fi - } load_module llite/lustre - load_module_llite_lloop + llite_lloop_enabled && load_module llite/llite_lloop [ -d /r ] && OGDB=${OGDB:-"/r/tmp"} OGDB=${OGDB:-$TMP} rm -f $OGDB/ogdb-$HOSTNAME