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
  • Loading branch information
bmeagherix committed Nov 13, 2024
1 parent 9d2ddfc commit 4b62577
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 4b62577

Please sign in to comment.