From: FUJITA Tomonori <tomof@acm.org>
To: mark_salyzyn@adaptec.com
Cc: tomof@acm.org, James.Bottomley@HansenPartnership.com,
linux-scsi@vger.kernel.org, benh@kernel.crashing.org,
fujita.tomonori@lab.ntt.co.jpfujita.tomonori@lab.ntt.co.jp
Subject: RE: [PATCH 1/2] replace sizeof sense_buffer with SCSI_SENSE_BUFFERSIZE
Date: Fri, 4 Jan 2008 23:05:42 +0900 [thread overview]
Message-ID: <20080104230840K.tomof@acm.org> (raw)
In-Reply-To: <AE4F746F2AECFC4DA4AADD66A1DFEF01010A4697@otce2k301.adaptec.com>
On Thu, 3 Jan 2008 11:10:04 -0500
"Salyzyn, Mark" <mark_salyzyn@adaptec.com> wrote:
> ACK on aacraid/ips/dpt_i2o bits. Inspected others, this patch IS inert.
Thanks!
> NitMeBeingStupidAndAddingARiderToTheBill: I know it was a grep/replace.
> If you need to respin because of Boaz and do not mind, do not hesitate
> to optimize (?) and instead do:
>
> diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c
> index 70f48a1..c6380c0 100644
> --- a/drivers/scsi/dpt_i2o.c
> +++ b/drivers/scsi/dpt_i2o.c
> @@ -2298,7 +2298,6 @@ static s32 adpt_i2o_to_scsi(void __iomem *reply,
> struct scsi_cmnd* cmd)
> // copy over the request sense data if it was a check
> // condition status
> - if(dev_status == 0x02 /*CHECK_CONDITION*/) {
> - u32 len = sizeof(cmd->sense_buffer);
> - len = (len > 40) ? 40 : len;
> + if (dev_status == 0x02 /*CHECK_CONDITION*/) {
> + u32 len = (SCSI_SENSE_BUFFERSIZE > 40) ? 40 :
> SCSI_SENSE_BUFFERSIZE;
> // Copy over the sense data
> memcpy_fromio(cmd->sense_buffer, (reply+28) ,
> len);
I see. I'll do if I need to send an updated patch.
next prev parent reply other threads:[~2008-01-04 14:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-03 4:56 [PATCH 0/2] fix the sense buffer DMA issue FUJITA Tomonori
2008-01-03 4:56 ` [PATCH 1/2] replace sizeof sense_buffer with SCSI_SENSE_BUFFERSIZE FUJITA Tomonori
2008-01-03 15:01 ` Boaz Harrosh
2008-01-03 15:34 ` FUJITA Tomonori
2008-01-03 16:10 ` Salyzyn, Mark
2008-01-04 14:05 ` FUJITA Tomonori [this message]
2008-01-03 4:56 ` [PATCH 2/2] use dynamically allocated sense buffer FUJITA Tomonori
2008-01-03 14:00 ` FUJITA Tomonori
2008-01-07 6:37 ` FUJITA Tomonori
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=20080104230840K.tomof@acm.org \
--to=tomof@acm.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=benh@kernel.crashing.org \
--cc=fujita.tomonori@lab.ntt.co.jpfujita.tomonori \
--cc=linux-scsi@vger.kernel.org \
--cc=mark_salyzyn@adaptec.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.