]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(iscsi): remove unneeded iscsi NOP-disable code
authorLee Duncan <lduncan@suse.com>
Thu, 24 Feb 2022 17:22:23 +0000 (09:22 -0800)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Sat, 26 Feb 2022 08:13:29 +0000 (08:13 +0000)
Commit 7374943ae3d06 ("fix(iscsi): add support for the new iscsiadm
"no-wait" (-W) command") added some code to try to disable iscsi's
NOPs, since they are considered "bad" for an iscsi root disc,
but that code doesn't work because the session is already established
at this point. Open-iscsi will change so that it automatically
disables NOPs for the root disc, so this code can just go away.

modules.d/95iscsi/iscsiroot.sh

index 946cb03ec5e3094ac1e2ce3572e466ad526e8bed..b326111f26600bd32c0d5b29aaf1a8e039a7afb1 100755 (executable)
@@ -82,15 +82,6 @@ handle_firmware() {
         if [ $_res -ne 0 ]; then
             warn "iscsiadm: Log-in to iscsi target failed"
         else
-            # get a list of connected targets
-            tgts=$(cat /sys/firmware/ibft/target*/target-name | sort -u)
-            # disable NOPs for each FW target
-            for tgt in ${tgts}; do
-                iscsiadm -m node -T "${tgt}" \
-                    --op update \
-                    --name 'node.conn[0].timeo.noop_out_interval' --value 0 \
-                    --name 'node.conn[0].timeo.noop_out_timeout' --value 0
-            done
             need_shutdown
         fi
     fi