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
This commit is contained in:
Bart Van Assche
2019-04-06 23:14:24 +00:00
parent dffb910c00
commit 976595dccb

View File

@@ -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