scstadmin/init.d: unload qla2x00tgt before qla2xxx_scst

qla2x00tgt holds a reference on qla2xxx_scst, so it must be unloaded
first.  The wrong order caused a 30-second timeout on every shutdown.
This commit is contained in:
Brian M
2026-02-27 12:56:30 -08:00
committed by Gleb Chesnokov
parent 7ba376819c
commit 1e94a45bd3

View File

@@ -190,7 +190,7 @@ unload_scst() {
# seconds.
unload_kmod isert_scst 90 || echo "Unloading isert_scst failed"
for m in isert_scst iscsi_scst fcst ib_srpt qla2xxx_scst qla2x00tgt \
for m in isert_scst iscsi_scst fcst ib_srpt qla2x00tgt qla2xxx_scst \
scst_local scst_disk scst_raid scst_tape scst_user scst_changer \
scst_cdrom scst_vdisk scst_modisk scst_processor scst; do
unload_kmod "$m" 30