All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] scsi: target: COMPARE AND WRITE miscompare sense
@ 2020-10-30 21:39 ` David Disseldorp
  0 siblings, 0 replies; 14+ messages in thread
From: David Disseldorp @ 2020-10-30 21:39 UTC (permalink / raw)
  To: target-devel; +Cc: linux-scsi

This patchset adds missing functionality to return the offset of
non-matching read/compare data in the sense INFORMATION field on
COMPARE AND WRITE miscompare.

The functionality can be tested using the libiscsi
CompareAndWrite.MiscompareSense test proposed via:
  https://github.com/sahlberg/libiscsi/pull/344

Changes since v2:
- perform bad_sector->sense_info rename in overlooked ib_isert
- drop scatterlist change queued via Jens' tree
- add Mike's reviewed-by tag
- rebase against Martin's 5.11/scsi-queue branch

Changes since v1:
- drop unnecessary WARN_ON()
- fix two checkpatch warnings
- drop single-use nlbas variable
- avoid compare_len recalculation

Cheers, David

 drivers/infiniband/ulp/isert/ib_isert.c |   4 +-
 drivers/target/target_core_sbc.c        | 137 ++++++++++++++----------
 drivers/target/target_core_transport.c  |  33 +++---
 include/target/target_core_base.h       |   2 +-
 4 files changed, 103 insertions(+), 73 deletions(-)


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-10-31 10:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-30 21:39 [PATCH v2 0/4] scsi: target: COMPARE AND WRITE miscompare sense David Disseldorp
2020-10-30 21:39 ` David Disseldorp
2020-10-30 21:39 ` [PATCH v3 1/4] scsi: target: rename struct sense_info to sense_detail David Disseldorp
2020-10-30 21:39   ` David Disseldorp
2020-10-30 21:39 ` [PATCH v3 2/4] scsi: target: rename cmd.bad_sector to cmd.sense_info David Disseldorp
2020-10-30 21:39   ` David Disseldorp
2020-10-30 21:39 ` [PATCH v3 3/4] scsi: target: split out COMPARE AND WRITE memcmp into helper David Disseldorp
2020-10-30 21:39   ` David Disseldorp
2020-10-30 21:39 ` [PATCH v3 4/4] scsi: target: return COMPARE AND WRITE miscompare offsets David Disseldorp
2020-10-30 21:39   ` David Disseldorp
2020-10-31  0:06   ` Douglas Gilbert
2020-10-31  0:06     ` Douglas Gilbert
2020-10-31 10:38     ` David Disseldorp
2020-10-31 10:38       ` David Disseldorp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.