public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Luben Tuikov <ltuikov@yahoo.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: James Bottomley <James.Bottomley@suse.de>,
	Richard Senior <richard@r-senior.demon.co.uk>,
	SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] sd: Fix regression in sd_read_cache_type
Date: Wed, 23 Mar 2011 10:55:05 -0700 (PDT)	[thread overview]
Message-ID: <480032.5780.qm@web31811.mail.mud.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1103231314130.2211-100000@iolanthe.rowland.org>

--- On Wed, 3/23/11, Alan Stern <stern@rowland.harvard.edu> wrote:
> 
> No.  It means I'll submit a new version of the
> $SUBJECT patch (which in 
> fact I have already done),

I just saw it and acked it.

> and leave it up to James to
> decide the best 
> way to merge it with your original patch.

Yes, I'm curious to see what Bottomley does too, now that he's (apparently?) decided to revert my topic patch, on top of which yours applies.

> Even though the merge window is now nearly over, my revised
> patch could
> still be sent on to Linus as a bug fix for 2.6.39-rc2 (and
> also queued
> for 2.6.38.1 or .2, of course).

Yes, that'd be the smart thing to do.

> > > It's possible that some wierd USB device will
> report that
> > > more than 192
> > > bytes of mode-sense data is available and then
> fail when
> > > the host asks
> > > for the reported amount.  You'd think no device
> could
> > > be that stupid,
> > 
> > If by "fail" you mean "crash", then yes, that's bad.
> However, the device may return less data. The while loop of
> my patch, 24d720b726c1a85f1962831ac30ad4d2ef8276b1, will
> correctly parse the returned
> > less data.
> 
> True; my patches catch that case.  They prevent a
> second MODE SENSE 
> command from being sent if it would ask for less data than
> the first 
> command has already asked for.

By "that" case you mean asking for less data than already asked for. You don't mean "parsing the MOSE SENSE data for any len correctly".

Indeed, there is no point in asking for _less_ data than already asked for, as the loop I included in my topic patch, 24d720b726c1a85f1962831ac30ad4d2ef8276b1, will parse that data correctly.

  Luben


--
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

  reply	other threads:[~2011-03-23 18:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 21:29 [PATCH] sd: Fix regression in sd_read_cache_type Alan Stern
2011-03-23 14:06 ` Luben Tuikov
2011-03-23 15:16   ` James Bottomley
2011-03-23 15:54     ` Luben Tuikov
2011-03-23 16:12     ` Alan Stern
2011-03-23 16:44       ` Luben Tuikov
2011-03-23 17:23         ` Alan Stern
2011-03-23 17:55           ` Luben Tuikov [this message]
2011-03-23 18:30             ` Alan Stern
2011-03-23 16:18     ` [PATCH ver. 2] " Alan Stern
2011-03-23 17:40       ` Luben Tuikov

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=480032.5780.qm@web31811.mail.mud.yahoo.com \
    --to=ltuikov@yahoo.com \
    --cc=James.Bottomley@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=richard@r-senior.demon.co.uk \
    --cc=stern@rowland.harvard.edu \
    /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