Skip to content

target: Fix several problems related to T10-PI support

Akinobu Mita linux-crypto linux-scsi 4 versions – Applied

Status from this message: Applied to target-pending/for-next as v4.2 code.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 8 repliesApplied
  2. v35 patches 20 repliesSuperseded
  3. v24 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches1 replySuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4target: Fix inconsistent address passed to kunmap_atomic() in sbc_dif_copy_prot()drivers/target/target_core_sbc.c+3 -20 replies
2/4target: ensure se_cmd->t_prot_sg is allocated when requireddrivers/target/target_core_transport.c include/target/target_core_base.h+16 -120 replies
3/4lib: introduce crc_t10dif_update()include/linux/crc-t10dif.h lib/crc-t10dif.c+11 -37 replies
4/4target: handle odd SG mapping for data transfer memorydrivers/target/target_core_sbc.c+83 -390 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchMartin K. Petersen
1/4
2/4
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] target: Fix several problems related to T10-PI support

This patchset aims to fix several problems related to T10-PI support.

These patches can be applied on top of Sagi's "[v1] Simlify dif_verify routines and fixup fileio protection information code" patchset.

* Changes from v3:
- Drop WRITE SAME support from this patch series, as it requires more works than I expected in the first place.
- Improve the condition in transport_generic_new_cmd() a bit
- Reduce duplicated code between crc_t10dif_update and crc_t10dif, suggested by Tim and Herbert
- Fix inconsistent address passed to kunmap_atomic, reported by Sagi
- Stop operation in sbc_dif_generate() and sbc_dif_verify() when reaching the end of data SG elements

* Changes from v2:
- Introduces crc_t10dif_update() to calculate CRC by multiple calls
- Handle odd SG mapping correctly instead of giving up

* Changes from v1:
- Reduce code duplication a bit in target_read_prot_action()
- Fix sbc_dif_verify() for WRITE_SAME command
- Fix inverted rw argument for fd_do_rw()
- Perform DIF verify before write for WRITE_SAME

Akinobu Mita (4):
target: Fix inconsistent address passed to kunmap_atomic() in

    sbc_dif_copy_prot()

target: ensure se_cmd->t_prot_sg is allocated when required
lib: introduce crc_t10dif_update()
target: handle odd SG mapping for data transfer memory

 drivers/target/target_core_sbc.c       | 127 ++++++++++++++++++++++-----------
 drivers/target/target_core_transport.c |  27 +++----
 include/linux/crc-t10dif.h             |   1 +
 include/target/target_core_base.h      |   1 +
 lib/crc-t10dif.c                       |  13 +++-
 5 files changed, 113 insertions(+), 56 deletions(-)
Cc Tim Chen <[email protected]>
Cc Herbert Xu <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Nicholas Bellinger <[email protected]>
Cc Sagi Grimberg <[email protected]>
Cc "Martin K. Petersen" <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
Signature · 1 line
1.9.1