diff options
author | Bodo Stroesser <bostroesser@gmail.com> | 2021-07-13 19:50:21 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-08-03 07:27:42 -0400 |
commit | 018c14911dd7e2feedd96d440f12ea999e459fff (patch) | |
tree | fa060361779f78b25235cc4fc5ecba3f7720deb6 /Documentation/trace/events-msr.rst | |
parent | c11a1ae9b8f65ef7b82a5a1155581a6e6bafa375 (diff) | |
download | lwn-018c14911dd7e2feedd96d440f12ea999e459fff.tar.gz lwn-018c14911dd7e2feedd96d440f12ea999e459fff.zip |
scsi: target: tcmu: Add new feature KEEP_BUF
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.
All kept buffers are released during reset_ring and if userspace closes uio
device (tcmu_release).
Link: https://lore.kernel.org/r/20210713175021.20103-1-bostroesser@gmail.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Bodo Stroesser <bostroesser@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'Documentation/trace/events-msr.rst')
0 files changed, 0 insertions, 0 deletions