From 976595dccb80fe8c16ea1a179f45ca8980ef5f27 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 6 Apr 2019 23:14:24 +0000 Subject: [PATCH] scst: Also unload the qla2xxx_scst kernel module when stopping SCST Make sure that the qla2xxx_scst kernel module is reloaded after an upgrade of SCST. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8161 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/init.d/scst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scstadmin/init.d/scst b/scstadmin/init.d/scst index dda4fdecb..e2703409c 100755 --- a/scstadmin/init.d/scst +++ b/scstadmin/init.d/scst @@ -208,6 +208,10 @@ unload_scst() { fi unload_kmod $m 30 || return 1 done + # Loading qla2x00tgt causes qla2xxx_scst to be loaded but removing + # qla2x00tgt does not cause qla2xxx_scst to be unloaded. Hence unload it + # explicitly. + unload_kmod qla2xxx_scst for m in $SCST_OPT_MODULES; do reverse_list="$m $reverse_list" done