From: Boaz Harrosh <bharrosh@panasas.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 1/5] SCSI: Add support for 32-byte CDBs
Date: Tue, 15 Sep 2009 11:15:23 +0300 [thread overview]
Message-ID: <4AAF4D1B.3060205@panasas.com> (raw)
In-Reply-To: <yq163bk8y35.fsf@sermon.lab.mkp.net>
On 09/15/2009 10:29 AM, Martin K. Petersen wrote:
>>>>>> "Boaz" == Boaz Harrosh <bharrosh@panasas.com> writes:
>
> Boaz> This patch replaces both:
> Boaz> [PATCH 1/5] SCSI: Add support for 32-byte CDBs
> Boaz> [PATCH 4/5] sd: Support disks formatted with DIF Type 2
>
> Boaz> right?
>
> Yep.
>
>
> Boaz> One question below
>
>>> + SCpnt->cmnd = mempool_alloc(sd_cdb_pool, GFP_ATOMIC);
>>> +
>
> Boaz> The cmd_len gets updated later on, in scsi_lib.c right?
>
> Nope. But you are right that I should set cmd_len correctly. Otherwise
> LLDs won't transfer sufficient CDB data (that's obviously not a problem
> for scsi_debug which is what I've been using for testing).
>
It does in scsi_init_cmd_errh() which is called from scsi_request_fn().
It does:
if (cmd->cmd_len == 0)
cmd->cmd_len = scsi_command_size(cmd->cmnd);
Now scsi_command_size() perfectly understand VARIABLE_LENGTH_CMD, but it might
be clearer to set it here next to the command setup, in sd.c.
Boaz
next prev parent reply other threads:[~2009-09-15 8:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-04 8:36 DIF/DIX updates for 2.6.32 Martin K. Petersen
2009-09-04 8:36 ` [PATCH 1/5] SCSI: Add support for 32-byte CDBs Martin K. Petersen
2009-09-06 10:58 ` Boaz Harrosh
2009-09-09 4:31 ` Martin K. Petersen
2009-09-09 8:27 ` Boaz Harrosh
2009-09-11 6:33 ` Martin K. Petersen
2009-09-13 9:31 ` Boaz Harrosh
2009-09-15 7:29 ` Martin K. Petersen
2009-09-15 8:15 ` Boaz Harrosh [this message]
2009-09-09 8:28 ` Boaz Harrosh
2009-09-16 17:38 ` James Bottomley
2009-09-16 18:52 ` Martin K. Petersen
2009-09-04 8:36 ` [PATCH 2/5] SCSI: Deprecate SCSI_PROT_*_CONVERT operations Martin K. Petersen
2009-09-04 8:36 ` [PATCH 3/5] sd: Detach DIF from block integrity infrastructure Martin K. Petersen
2009-09-04 8:36 ` [PATCH 4/5] sd: Support disks formatted with DIF Type 2 Martin K. Petersen
2009-09-04 8:36 ` [PATCH 5/5] scsi_debug: Implement support for " Martin K. Petersen
-- strict thread matches above, loose matches on Subject: below --
2009-08-26 6:17 DIF/DIX updates for 2.6.32 Martin K. Petersen
2009-08-26 6:17 ` [PATCH 1/5] SCSI: Add support for 32-byte CDBs Martin K. Petersen
2009-08-26 12:16 ` Boaz Harrosh
2009-08-27 6:38 ` Martin K. Petersen
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=4AAF4D1B.3060205@panasas.com \
--to=bharrosh@panasas.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/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.