With SGV sharing, device B can reuse a buffer whose allocation owner is a command from device A. If A's user handle closes while B still has the SGV checked out, A's command remains in its hash. The unjam pass sees that command, but there is no ready A command, so get_next_cmd() returns -EAGAIN. Once cleanup_done is set, the old inner loop keeps retrying A and prevents the single cleanup worker from reaching B. The post-unjam pool flush added by PR #378 frees SGV objects that have already returned to the recycling lists. It cannot free the object still checked out by B, so it cannot resolve this dependency. Yield A to the outer cleanup loop when no ready command exists but the unjam pass still reports commands. The worker can process B and retry A after its normal sleep. Signal A's cleanup completion only when its release is done and no commands remain. Link: https://github.com/SCST-project/scst/issues/279
Overview
This is the source code repository of the SCST project. SCST is a collection of Linux kernel drivers that implement SCSI target functionality. The SCST project includes:
- The SCST core in the scst/ subdirectory.
- A tool for loading, saving and modifying the SCST configuration in directory scstadmin/.
- Several SCSI target drivers in the directories iscsi-scst/, qla2x00t-32gbit/, qla2x00t/, srpt/, scst_local/ and fcst/.
- User space programs in the usr/ subdirectory, e.g. fileio_tgt.
- Various documentation in the doc/ subdirectory.
Instructions for building and installing SCST are available in the INSTALL.md file.
Current master packages
Prebuilt x86_64 packages from the latest successfully published master
build are available in the rolling
master-rpm prerelease.
These are development snapshots, not SCST releases.
The snapshot contains RPM bundles for selected Rocky Linux and Oracle Linux
UEK kernels. It also contains Ubuntu LTS bundles with scst-dkms, scstadmin
and iscsi-scst binary packages and their Debian source package files. Exact
distribution releases and RPM kernel versions are included in the asset names.
Every .tar.gz bundle has a matching .sha256 file. The complete snapshot is
replaced after each successful package workflow for the current master
commit.
QLogic target driver
Two QLogic target drivers are included in the SCST project.
The default driver is located in the qla2x00t-32gbit directory. It is the newer one.
May anyone wish to switch back to the older driver that only supported up to
16 Gb/s adapters, it is located in qla2x00t directory. To make use of the
older driver build scst with environment variable QLA_32GBIT=no set.
Vladislav Bolkhovitin vst@vlnb.net, http://scst.sourceforge.net
