linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian King <brking@us.ibm.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: linux-scsi@vger.kernel.org, jgarzik@pobox.com, linux-ide@vger.kernel.org
Subject: Re: [PATCH 1/2] scsi: Add scsi_device max_cmd_len (resend)
Date: Fri, 28 Apr 2006 14:03:30 -0500	[thread overview]
Message-ID: <44526702.1010400@us.ibm.com> (raw)
In-Reply-To: <1146249006.5251.64.camel@mulgrave.il.steeleye.com>

James Bottomley wrote:
> On Fri, 2006-04-28 at 13:19 -0500, Brian King wrote:
>> That is what is done today, which works fine if you only have one
>> device per host, but when you have multiple devices per host, there is
>> no *good* value to put in the host max_cmd_len, hence the patch. This
>> could also be completely contained in libata as my previous post suggests,
>> if Jeff is OK with that.
> 
> The value should be the minimum of the currently supported lengths.  I
> presume we have 10, 12 and 16 for SATA?  In which case the only problem
> is not doing 16 and then only if you want to go beyond 2TB ... 

Which is what libata is doing today. This doesn't work as well for SAS
adapters which support SATA drives and also support > 2TB disk arrays.

> Perhaps you could tell me what the actual failure case is?  

I don't have any data on how ATA/ATAPI devices respond if they receive
too large of a CDB, but my guess is they probably don't react nicely.
Today libata uses the hosts's max_cmd_len for some protection against
this, I was merely trying to continue with a similar level of
protection in my new usage of libata.

The reason for this patch is so that libata no longer has to overload
scsi_host->max_cmd_len for what is really a device attribute for SATA.
I can go back down the path of containing this in libata, if we don't
see any use for such an attribute outside of SATA.

Thanks

Brian


-- 
Brian King
eServer Storage I/O
IBM Linux Technology Center

  reply	other threads:[~2006-04-28 19:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-17 22:40 [PATCH 1/2] scsi: Add scsi_device max_cmd_len (resend) Brian King
2006-04-17 22:48 ` [PATCH 2/2] libata: Use " Brian King
2006-04-17 22:52   ` Jeff Garzik
2006-04-18 14:01     ` Brian King
2006-04-28 14:28 ` [PATCH 1/2] scsi: Add " Brian King
2006-04-28 15:17   ` James Bottomley
2006-04-28 17:47     ` Luben Tuikov
2006-04-28 18:19     ` Brian King
2006-04-28 18:30       ` James Bottomley
2006-04-28 19:03         ` Brian King [this message]
2006-04-28 20:56           ` James Bottomley
2006-04-28 21:11             ` Brian King
2006-04-28 21:21               ` James Bottomley
2006-04-28 21:32               ` Jeff Garzik
2006-04-28 21:43                 ` Brian King
2006-04-28 21:54                 ` James Bottomley
2006-04-28 17:28   ` Luben Tuikov
2006-04-28 18:16     ` Brian King

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=44526702.1010400@us.ibm.com \
    --to=brking@us.ibm.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --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 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).