On Tue, 13 Jul 2021 19:50:21 +0200, Bodo Stroesser wrote: > When running command pipelining for WRITE direction commands, > (e.g. tape device write) userspace sends cmd completion to cmd > ring before processing write data. In that case userspace has to > copy data before sending completion, because cmd completion also > implicitly releases the data buffer in data area. > > The new feature KEEP_BUF allows userspace to optionally keep the > buffer after completion by setting new bit TCMU_UFLAG_KEEP_BUF in > tcmu_cmd_entry_hdr->uflags. In that case buffer has to be released > explicitly by writing the cmd_id to new action item free_kept_buf. > > [...] Applied to 5.15/scsi-queue, thanks! [1/1] scsi: target: tcmu: Add new feature KEEP_BUF https://git.kernel.org/mkp/scsi/c/018c14911dd7 -- Martin K. Petersen Oracle Linux Engineering