mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
679ca7c14ecc3eefcc139197260b93955fe3945d
Calling scst_cmd_init_done() with SCST_CONTEXT_DIRECT from sqa_qla2xxx_handle_cmd() cause a SCST READ commands to stall for scst_user devices. The problem is that scst_user devices use udev_cmd_threads for processing SCST commands, so it's necessary to call the scst_user dev handler callbacks from the SCST_CONTEXT_THREAD context. For write commands, this is already done because scst_rx_data() always processes commands with a THREAD context. But for READ commands, it depends on passing the preferred context value to scst_cmd_init_done(). So pass the SCST_CONTEXT_THREAD or SCST_CONTEXT_TASKLET to scst_cmd_init_done(). SCST_CONTEXT_TASKLET would also work, because the context optimization in scst_init_cmd() will still set SCST_CONTEXT_THREAD for READ commands. Reported-by: Eitan Cohen <eitancohen456@gmail.com>
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/, 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.
QLogic target driver
Two QLogic target drivers are included in the SCST project.
The default driver is located in qla2x00t-32gbit directory and it supports up to 32 Gb/s FC. 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
Sourceforge achievements
Description
Languages
C
90.1%
Perl
4.2%
Shell
1.8%
HTML
1.7%
Makefile
1.2%
Other
0.9%