Skip to content

Use REQ_OP_WRITE_SAME to implement WRITE SAME

Bart Van Assche target-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: Add blkdev_submit_write_same()block/blk-lib.c include/linux/blkdev.h+39 -10 replies
2/2target/core: Use REQ_OP_WRITE_SAME to implement WRITE SAMEdrivers/target/target_core_iblock.c+17 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] Use REQ_OP_WRITE_SAME to implement WRITE SAME

Hi Martin,

The SCSI target iblock backend uses regular writes to implement the SCSI WRITE SAME command. That is suboptimal for at least SCSI and NVMe SSDs. This patch series makes the iblock backend use REQ_OP_WRITE_SAME instead. Please consider these patches for inclusion in the upstream kernel.

Thanks,

Bart.

Bart Van Assche (2):
block: Add blkdev_submit_write_same() target/core: Use REQ_OP_WRITE_SAME to implement WRITE SAME

 block/blk-lib.c                     | 37 ++++++++++++++++++++++++++++-
 drivers/target/target_core_iblock.c | 17 +++++++++++++
 include/linux/blkdev.h              |  3 +++
 3 files changed, 56 insertions(+), 1 deletion(-)
Signature · 1 line
2.22.0.410.gd8fdbe21b5-goog