This patchset is based on 6.1/scsi-queue. The patchset adds support of REPORT SUPPORTED OPERATION CODES command according to SPC4. Including CDB USAGE DATA and timeout descriptors. Timeout descriptors are zeroed currently, meaning that no time is indicated, but an encoding of it there is. Opcode support and Usage Data are dynamically generated - reflects the backstore configuration. libiscsi tests for RSOC and tests that uses RSOC command are all PASSED. v2: fix sparse warnings remove extra space remove XDWRITEREAD_* fix tcm_is_ws_enabled Dmitry Bogdanov (6): scsi: target: core: add support of RSOC command scsi: target: core: add list of opcodes for RSOC scsi: target: core: dynamic opcode support in RSOC scsi: target: core: add emulate_rsoc attribute scsi: target: check emulate_3pc for RECEIVE COPY scsi: target: core: dynamicaly set dpofua in usage_bits drivers/target/target_core_configfs.c | 20 + drivers/target/target_core_device.c | 1 + drivers/target/target_core_spc.c | 920 ++++++++++++++++++++++++++ drivers/target/target_core_xcopy.c | 6 + include/scsi/scsi_proto.h | 10 + include/target/target_core_base.h | 18 + 6 files changed, 975 insertions(+) -- 2.25.1