Skip to content

Commit

Permalink
When stopping scst turn off cluster_mode in parallel
Browse files Browse the repository at this point in the history
(cherry picked from commit 8a90f7a)
  • Loading branch information
bmeagherix authored and bugclerk committed Jan 30, 2024
1 parent ac2a447 commit 7d4145e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scstadmin/init.d/scst
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,17 @@ stop_scst() {
return 1
fi
# Disable iSCSI
if [ -f /sys/kernel/scst_tgt/targets/iscsi/enabled ]; then
echo 0 > /sys/kernel/scst_tgt/targets/iscsi/enabled
fi
# Turn off any cluster_mode in parallel
for cm in /sys/kernel/scst_tgt/devices/*/cluster_mode ; do
echo 0 > "$cm" &
done
wait
unload_scst
}
Expand Down

0 comments on commit 7d4145e

Please sign in to comment.