Skip to content

scsi: target: Add WRITE_ATOMIC_16 support

John Garry linux-scsi lkml target-devel 2 versions – Applied

Status from this message: Applied to 6.19/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 2 repliesApplied
  2. v27 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Fix 32b build error

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7scsi: target: Rename target_configure_unmap_from_queuedrivers/target/target_core_device.c drivers/target/target_core_file.c drivers/target/target_core_iblock.c +1 more+9 -90 replies
2/7scsi: target: Add atomic se_device fieldsdrivers/target/target_core_configfs.c include/target/target_core_base.h+20 -00 replies
3/7scsi: target: Add helper to setup atomic values from block_devicedrivers/target/target_core_device.c include/target/target_core_backend.h+19 -00 replies
4/7scsi: target: Add WRITE_ATOMIC_16 handlerdrivers/target/target_core_sbc.c include/target/target_core_base.h+52 -00 replies
5/7scsi: target: Report atomic values in INQUIRYdrivers/target/target_core_spc.c+24 -60 replies
6/7scsi: target: Add WRITE_ATOMIC_16 support to RSOCdrivers/target/target_core_spc.c+19 -00 replies
7/7scsi: target: Add atomic support to target_core_iblockdrivers/target/target_core_iblock.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/7] scsi: target: Add WRITE_ATOMIC_16 support

This is a reposting of Mike's atomic writes support for the SCSI target.

Again, we are now only supporting target_core_iblock. It's implemented similar to UNMAP where we do not do any emulation and instead pass the operation to the block layer.

Changes since v2:
- Fix 32b build error

Changes since v1:
- Don't make atomic alignment configurable
- Drop atomic_supported configfs entry
- reformatting
- fix lba size in sbc_check_atomic()
- fix return code from sbc_check_atomic()

Mike Christie (7):
scsi: target: Rename target_configure_unmap_from_queue
scsi: target: Add atomic se_device fields
scsi: target: Add helper to setup atomic values from block_device
scsi: target: Add WRITE_ATOMIC_16 handler
scsi: target: Report atomic values in INQUIRY
scsi: target: Add WRITE_ATOMIC_16 support to RSOC
scsi: target: Add atomic support to target_core_iblock

 drivers/target/target_core_configfs.c | 15 ++++++++
 drivers/target/target_core_device.c   | 23 ++++++++++--
 drivers/target/target_core_file.c     |  4 +--
 drivers/target/target_core_iblock.c   |  9 +++--
 drivers/target/target_core_sbc.c      | 51 +++++++++++++++++++++++++++
 drivers/target/target_core_spc.c      | 49 +++++++++++++++++++++----
 include/target/target_core_backend.h  |  6 ++--
 include/target/target_core_base.h     |  6 ++++
 8 files changed, 148 insertions(+), 15 deletions(-)
Signature · 1 line
2.43.5