From: Hannes Reinecke <hare@suse.de>
To: "Elliott, Robert (Server Storage)" <Elliott@hp.com>,
James Bottomley <jbottomley@parallels.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Ewan Milne <emilne@redhat.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH 02/10] scsi: Add SPC-3 command definitions
Date: Mon, 17 Nov 2014 08:56:29 +0100 [thread overview]
Message-ID: <5469AA2D.7090903@suse.de> (raw)
In-Reply-To: <94D0CD8314A33A4D9D801C0FE68B402959398D0C@G9W0745.americas.hpqcorp.net>
On 11/12/2014 06:07 PM, Elliott, Robert (Server Storage) wrote:
>
>
>> -----Original Message-----
>> From: Hannes Reinecke [mailto:hare@suse.de]
>> Sent: Thursday, 06 November, 2014 2:31 AM
>> To: James Bottomley
>> Cc: Christoph Hellwig; Ewan Milne; Elliott, Robert (Server Storage);
>> linux-scsi@vger.kernel.org; Hannes Reinecke
>> Subject: [PATCH 02/10] scsi: Add SPC-3 command definitions
>>
>> SPC-3 defines SERVICE ACTION IN(12), SERVICE_ACTION OUT(12),
>> SERVICE ACTION OUT(16), and SERVICE ACTION BIDIRECTIONAL.
>> And READ MEDIA SERIAL NUMBER has long since been deprecated.
>> So update callers to refer to the new cdb name.
>>
>> Reviewed-by: Christoph Hellwig <hch@lst.de>
>> Signed-off-by: Hannes Reinecke <hare@suse.de>
>> ---
>> drivers/scsi/constants.c | 4 ----
>> drivers/target/target_core_pr.c | 2 +-
>> include/scsi/scsi.h | 6 +++++-
>> tools/lib/traceevent/plugin_scsi.c | 5 ++++-
>> 4 files changed, 10 insertions(+), 7 deletions(-)
>>
> ...
>> diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
>> index b354c0d..df00fd1 100644
>> --- a/include/scsi/scsi.h
>> +++ b/include/scsi/scsi.h
>> @@ -128,8 +128,10 @@ enum scsi_timeouts {
>> #define MOVE_MEDIUM 0xa5
>> #define EXCHANGE_MEDIUM 0xa6
>> #define READ_12 0xa8
>> +#define SERVICE_ACTION_OUT_12 0xa9
>> #define WRITE_12 0xaa
>> -#define READ_MEDIA_SERIAL_NUMBER 0xab
>> +#define READ_MEDIA_SERIAL_NUMBER 0xab /* Obsolete with SPC-2 */
>> +#define SERVICE_ACTION_IN_12 0xab
>
> That needs one more space before 0xab to line up with the others.
>
> ...
>> diff --git a/tools/lib/traceevent/plugin_scsi.c
>> b/tools/lib/traceevent/plugin_scsi.c
>> index c699f47..63aba97 100644
>> --- a/tools/lib/traceevent/plugin_scsi.c
>> +++ b/tools/lib/traceevent/plugin_scsi.c
>> @@ -85,8 +85,9 @@ typedef unsigned int u32;
>> #define MOVE_MEDIUM 0xa5
>> #define EXCHANGE_MEDIUM 0xa6
>> #define READ_12 0xa8
>> +#define SERVICE_ACTION_out_12 0xa9
> ...
>
> out should be capitalized
>
Fixed in my next round of patches.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-11-17 7:56 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 8:30 [PATCHv2 00/10] scsi logging update: the real thing Hannes Reinecke
2014-11-06 8:30 ` [PATCH 01/10] scsi: Rename SERVICE_ACTION_IN to SERVICE_ACTION_IN_16 Hannes Reinecke
2014-11-14 16:10 ` Elliott, Robert (Server Storage)
2014-11-06 8:30 ` [PATCH 02/10] scsi: Add SPC-3 command definitions Hannes Reinecke
2014-11-12 17:07 ` Elliott, Robert (Server Storage)
2014-11-17 7:56 ` Hannes Reinecke [this message]
2014-11-06 8:30 ` [PATCH 03/10] scsi: Implement per-cpu logging buffer Hannes Reinecke
2014-11-13 2:22 ` Elliott, Robert (Server Storage)
2014-11-06 8:30 ` [PATCH 04/10] scsi: log request tag for scmd_printk() Hannes Reinecke
2014-11-12 17:18 ` Elliott, Robert (Server Storage)
2014-11-06 8:30 ` [PATCH 05/10] scsi: use external buffer for command logging Hannes Reinecke
2014-11-13 2:24 ` Elliott, Robert (Server Storage)
2014-11-06 8:30 ` [PATCH 06/10] libata: use __scsi_format_command() Hannes Reinecke
2014-11-14 16:02 ` Elliott, Robert (Server Storage)
2014-11-06 8:30 ` [PATCH 07/10] scsi: use per-cpu buffer for formatting sense Hannes Reinecke
2014-11-14 16:52 ` Elliott, Robert (Server Storage)
2014-11-06 8:30 ` [PATCH 08/10] scsi: use per-cpu buffer for formatting scsi_print_result() Hannes Reinecke
2014-11-14 22:20 ` Elliott, Robert (Server Storage)
2014-11-06 8:30 ` [PATCH 09/10] scsi: Conditionally compile in constants.c Hannes Reinecke
2014-11-14 22:40 ` Elliott, Robert (Server Storage)
2014-11-06 8:30 ` [PATCH 10/10] scsi: Do not display buffer pointers in scsi_log_send() Hannes Reinecke
2014-11-14 22:53 ` Elliott, Robert (Server Storage)
2014-11-17 9:14 ` Hannes Reinecke
2014-11-14 22:59 ` [PATCHv2 00/10] scsi logging update: the real thing Elliott, Robert (Server Storage)
-- strict thread matches above, loose matches on Subject: below --
2014-11-17 13:25 [PATCHv3 " Hannes Reinecke
2014-11-17 13:25 ` [PATCH 02/10] scsi: Add SPC-3 command definitions Hannes Reinecke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5469AA2D.7090903@suse.de \
--to=hare@suse.de \
--cc=Elliott@hp.com \
--cc=emilne@redhat.com \
--cc=hch@infradead.org \
--cc=jbottomley@parallels.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.