linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Target sense data handling modifications
@ 2015-07-05  7:31 Sagi Grimberg
  2015-07-05  7:31 ` [PATCH v1 1/3] target: Inline transport_get_sense_codes() Sagi Grimberg
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sagi Grimberg @ 2015-07-05  7:31 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 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             |  58 +++++
 drivers/scsi/scsi_error.c              |  58 -----
 drivers/target/target_core_spc.c       |  31 +--
 drivers/target/target_core_transport.c | 398 ++++++++++++---------------------
 include/scsi/scsi_common.h             |   3 +
 include/scsi/scsi_eh.h                 |   4 +-
 include/target/target_core_base.h      |   9 +-
 7 files changed, 212 insertions(+), 349 deletions(-)

-- 
1.8.4.3


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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-05  7:31 [PATCH v1 0/3] Target sense data handling modifications Sagi Grimberg
2015-07-05  7:31 ` [PATCH v1 1/3] target: Inline transport_get_sense_codes() Sagi Grimberg
2015-07-06  6:04   ` Hannes Reinecke
2015-07-05  7:31 ` [PATCH v1 2/3] target: Split transport_send_check_condition_and_sense() Sagi Grimberg
2015-07-06  6:06   ` Hannes Reinecke
2015-07-05  7:31 ` [PATCH v1 3/3] target: Use scsi helpers to build the sense data correctly Sagi Grimberg
2015-07-06  6:08   ` Hannes Reinecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).