From: Albert Lee <albertcc@tw.ibm.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
Doug Maxey <dwm@maxeymade.com>,
Linux IDE <linux-ide@vger.kernel.org>
Subject: Re: PATCH/RFC libata-2.6 5/5] Odd request buffer length handling in __atapi_pio_bytes()
Date: Tue, 29 Mar 2005 20:57:29 +0800 [thread overview]
Message-ID: <424950B9.4030800@tw.ibm.com> (raw)
In-Reply-To: <423A905F.1030400@tw.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 737 bytes --]
Resubmit since the offset changed by patch 4/5.
Also changed printk() in previous patch to DPRINTK().
Albert
Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
---------------------------------------
--- libata-2.6-extrabytes/drivers/scsi/libata-core.c 2005-03-29 20:23:24.000000000 +0800
+++ libata-2.6-odd/drivers/scsi/libata-core.c 2005-03-29 20:51:52.000000000 +0800
@@ -2370,6 +2370,13 @@
/* don't cross page boundaries */
count = min(count, (unsigned int)PAGE_SIZE - offset);
+ /* handle the odd condition */
+ if (unlikely(count & 0x01)) {
+ DPRINTK("ata%u: odd count %u rounded: qc->nbytes %u, bytes %u\n",
+ ap->id, count, qc->nbytes, bytes);
+ count++;
+ }
+
buf = kmap(page) + offset;
qc->curbytes += count;
[-- Attachment #2: oddbuffer.diff --]
[-- Type: text/plain, Size: 536 bytes --]
--- libata-2.6-extrabytes/drivers/scsi/libata-core.c 2005-03-29 20:23:24.000000000 +0800
+++ libata-2.6-odd/drivers/scsi/libata-core.c 2005-03-29 20:51:52.000000000 +0800
@@ -2370,6 +2370,13 @@
/* don't cross page boundaries */
count = min(count, (unsigned int)PAGE_SIZE - offset);
+ /* handle the odd condition */
+ if (unlikely(count & 0x01)) {
+ DPRINTK("ata%u: odd count %u rounded: qc->nbytes %u, bytes %u\n",
+ ap->id, count, qc->nbytes, bytes);
+ count++;
+ }
+
buf = kmap(page) + offset;
qc->curbytes += count;
prev parent reply other threads:[~2005-03-29 12:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-18 8:25 PATCH/RFC libata-2.6 5/5] Odd request buffer length handling in __atapi_pio_bytes() Albert Lee
2005-03-29 12:57 ` Albert Lee [this message]
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=424950B9.4030800@tw.ibm.com \
--to=albertcc@tw.ibm.com \
--cc=bzolnier@gmail.com \
--cc=dwm@maxeymade.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@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).