public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Target sense data handling modifications
@ 2015-07-06  8:02 Sagi Grimberg
  2015-07-06  8:02 ` [PATCH v2 1/3] target: Inline transport_get_sense_codes() Sagi Grimberg
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Sagi Grimberg @ 2015-07-06  8:02 UTC (permalink / raw)
  To: target-devel, linux-scsi
  Cc: Nicholas A. Bellinger, Bart Van Assche, Christoph Hellwig,
	Hannes Reinecke

This patch set modifies the target sense data handling.
The main changes are that the sense data handling moved to
translate_sense_reason() and the sense reason switch statement
was converted to a table. In addition the sense buffer construction
is now done with scsi sense helpers which moved to scsi_common.

In addition t10-pi errors wrong sense setting (non-descriptor format)
was fixed.

Changes from v1:
- Added Reviewed-by tags for patches 1,2
- Fixed compilation error after testing patch #3 on scsi/for-next
  branch. Moved scsi_sense_desc_find() to scsi_common as well (dependency)
  and also moved <asm/unaligned.h> include to scsi_common.h

Changes from v0:
- Added Bart's patches and converted my patch to apply over his
- Moved scsi sense helpers to scsi_common

Bart Van Assche (2):
  target: Inline transport_get_sense_codes()
  target: Split transport_send_check_condition_and_sense()

Sagi Grimberg (1):
  target: Use scsi helpers to build the sense data correctly

 drivers/scsi/scsi_common.c             |  98 ++++++++
 drivers/scsi/scsi_error.c              |  99 +-------
 drivers/target/target_core_spc.c       |  31 +--
 drivers/target/target_core_transport.c | 398 ++++++++++++---------------------
 include/scsi/scsi_common.h             |   5 +
 include/scsi/scsi_eh.h                 |   7 +-
 include/target/target_core_base.h      |   9 +-
 7 files changed, 255 insertions(+), 392 deletions(-)

-- 
1.8.4.3

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

end of thread, other threads:[~2015-07-06 12:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06  8:02 [PATCH v2 0/3] Target sense data handling modifications Sagi Grimberg
2015-07-06  8:02 ` [PATCH v2 1/3] target: Inline transport_get_sense_codes() Sagi Grimberg
2015-07-06  8:59   ` Christoph Hellwig
2015-07-06 12:28     ` Sagi Grimberg
2015-07-06  8:02 ` [PATCH v2 2/3] target: Split transport_send_check_condition_and_sense() Sagi Grimberg
2015-07-06  9:05   ` Christoph Hellwig
2015-07-06  8:02 ` [PATCH v2 3/3] target: Use scsi helpers to build the sense data correctly Sagi Grimberg
2015-07-06  9:06   ` Christoph Hellwig
2015-07-06 12:29     ` Sagi Grimberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox