From: Luben Tuikov <ltuikov@yahoo.com>
To: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"Salyzyn, Mark" <Mark_Salyzyn@adaptec.com>
Cc: Tony Battersby <tonyb@cybernetics.com>, Mike Snitzer <snitzer@gmail.com>
Subject: Re: [PATCH 1/1] aacraid: do not set valid bit in sense information
Date: Wed, 6 Feb 2008 14:19:36 -0800 (PST) [thread overview]
Message-ID: <560371.69680.qm@web31807.mail.mud.yahoo.com> (raw)
In-Reply-To: <532ABFBDAAC3A34EB12EBA6CEC2838F43982A08C@ADPE2K703.adaptec.com>
--- On Wed, 2/6/08, Salyzyn, Mark <Mark_Salyzyn@adaptec.com> wrote:
> From: Salyzyn, Mark <Mark_Salyzyn@adaptec.com>
> Subject: [PATCH 1/1] aacraid: do not set valid bit in sense information
> To: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
> Cc: "Tony Battersby" <tonyb@cybernetics.com>, "ltuikov@yahoo.com" <ltuikov@yahoo.com>, "Mike Snitzer" <snitzer@gmail.com>
> Date: Wednesday, February 6, 2008, 1:54 PM
> Luben Tuikov [mailto:ltuikov@yahoo.com] sez:
> > Just as in your case and Tony's case, which I
> presume
> > uses the same RAID firmware vendor, it would've
> > probably been better if the RAID firmware vendor
> > fixed the firmware to not set the VALID bit if the
> > INFORMATION field is not valid.
>
> Point taken regarding the aacraid driver. Dropped the VALID
> bit, and then did some cleanup/simplification of the
> set_sense procedure and the associated parameters. Mike did
> some preliminary tests when the VALID bit was dropped before
> the 'Re: [PATCH] [SCSI] sd: make error handling more
> robust' patches came on the scene. The change in the
> SCSI subsystem does make this enclosed aacraid patch
> unnecessary, so this aacraid patch is merely post battle
> ground cleanup. If the simplification is an issue,
> repugnant, too much for a back-port to the stable trees or
> clouds the point, this patch could be happily distilled
> down to:
Sounds good.
Luben
>
> diff -ru a/drivers/scsi/aacraid/aachba.c
> b/drivers/scsi/aacraid/aachba.c
> --- a/drivers/scsi/aacraid/aachba.c 2008-02-06
> 16:26:45.834938955 -0500
> +++ b/drivers/scsi/aacraid/aachba.c 2008-02-06
> 16:32:01.109035329 -0500
> @@ -865,7 +865,7 @@
> u32 residue)
> {
> - sense_buf[0] = 0xF0; /* Sense data valid, err
> code 70h (current error) */
> + sense_buf[0] = 0x70; /* Sense data invalid, err
> code 70h (current error) */
> sense_buf[1] = 0; /* Segment number, always
> zero */
>
> if (incorrect_length) {
>
> This patch is against current scsi-misc-2.6
>
> ObligatoryDisclaimer: Please accept my condolences
> regarding Outlook's handling of patch attachments.
> Please use the attached patch and not any inline content.
>
> Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
>
> drivers/scsi/aacraid/aachba.c | 81
> +++++++++++++++---------------------------
> 1 file changed, 30 insertions(+), 51 deletions(-)
>
> Sincerely -- Mark Salyzyn
next prev parent reply other threads:[~2008-02-06 22:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-01 17:03 [PATCH] [SCSI] sd: make error handling more robust (v2) Tony Battersby
2008-02-01 20:13 ` Luben Tuikov
2008-02-01 20:47 ` Salyzyn, Mark
2008-02-02 0:43 ` Mike Snitzer
2008-02-02 20:24 ` Greg KH
2008-02-02 20:56 ` Mike Snitzer
2008-02-02 21:08 ` Greg KH
2008-02-02 22:06 ` James Bottomley
2008-02-03 15:14 ` Mike Snitzer
2008-02-04 9:14 ` Luben Tuikov
2008-02-06 21:54 ` [PATCH 1/1] aacraid: do not set valid bit in sense information Salyzyn, Mark
2008-02-06 22:19 ` Luben Tuikov [this message]
2008-02-04 9:11 ` [PATCH] [SCSI] sd: make error handling more robust (v2) Luben Tuikov
2008-02-04 21:22 ` James Bottomley
2008-02-04 23:23 ` 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=560371.69680.qm@web31807.mail.mud.yahoo.com \
--to=ltuikov@yahoo.com \
--cc=Mark_Salyzyn@adaptec.com \
--cc=linux-scsi@vger.kernel.org \
--cc=snitzer@gmail.com \
--cc=tonyb@cybernetics.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.