From: Tejun Heo <tj@kernel.org>
To: petkovbb@gmail.com, Tejun Heo <tj@kernel.org>,
James Bottomley <James.Bottomley@HansenPartnership.com>,
axboe@kernel.dk, linux-kernel@vger.kernel.org, jeff@garzik.org,
linux-ide@vger.
Subject: Re: [PATCH 03/10] block: add rq->resid_len
Date: Thu, 30 Apr 2009 18:25:42 +0900 [thread overview]
Message-ID: <49F96E96.5040107@kernel.org> (raw)
In-Reply-To: <20090430073719.GA9640@liondog.tnic>
Borislav Petkov wrote:
>>> And I like it too, we've been coming up with all sorts of hacks in
>>> ide-atapi wrt to residual completion and accounting of what got xferred
>>> already and rq->resid_len is much more cleaner, IMHO.
>>>
>>> /me testing...
>> AFAICT, residual count handling in ide was most broken.
Oooh... It was "mostly broken" not "most broken". Where went my l and
y?
> Tell me about it :).
>
>> This patch doesn't fix anything other than making it report 0
>> resid_len on SG_IO which is usually better than reporting full
>> residual count. The only place inside ide where residual count is used
>> in the tape driver to determine actually transferred size. That part
>> works okay with the patch applied.
>
>> Hmmm... maybe it's about time to finally clean up residual count
>> handling in ide and libata, which BTW doesn't do anything about it at
>> the moment.
>
> Completely agreed. This doesn't do anything about it right now but
> with rq->resid_len in place I could get rid of a bunch of pc->xferred,
> cmd->nleft and similar on-stack structs we've been introducing, and use
> solely an rq in the LLD. I'll get to do some experimenting tomorrow and
> whip up some cleanup patches in order to see how it could look exactly.
> Stay tuned.
Yay, cool. :-)
--
tejun
next prev parent reply other threads:[~2009-04-30 9:30 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 9:13 [GIT PATCH] block,scsi,ide: unify sector and data_len Tejun Heo
2009-04-29 9:13 ` [PATCH 01/10] nbd: don't clear rq->sector and nr_sectors unnecessarily Tejun Heo
2009-04-29 9:13 ` [PATCH 02/10] ide-tape: don't initialize rq->sector for rw requests Tejun Heo
2009-04-30 6:14 ` Borislav Petkov
2009-04-29 9:13 ` [PATCH 03/10] block: add rq->resid_len Tejun Heo
2009-04-29 14:41 ` James Bottomley
2009-04-30 1:59 ` Tejun Heo
2009-04-30 6:45 ` Borislav Petkov
2009-04-30 7:19 ` Tejun Heo
[not found] ` <49F95101.3010004@kernel.org>
2009-04-30 7:37 ` Borislav Petkov
2009-04-30 9:25 ` Tejun Heo [this message]
2009-04-29 9:13 ` [PATCH 04/10] block: implement blk_rq_pos/[cur_]sectors() and convert obvious ones Tejun Heo
2009-04-29 9:25 ` Geert Uytterhoeven
2009-04-29 10:16 ` Tejun Heo
2009-04-29 14:18 ` Stephen Rothwell
2009-04-29 14:49 ` Grant Likely
2009-04-29 9:13 ` [PATCH 05/10] block: convert to pos and nr_sectors accessors Tejun Heo
2009-04-29 9:40 ` Geert Uytterhoeven
2009-04-29 10:19 ` Tejun Heo
2009-04-29 14:48 ` Grant Likely
[not found] ` <1241037446.4516.2.camel@localhost.localdomain>
2009-04-30 17:30 ` Adrian McMenamin
2009-04-29 9:13 ` [PATCH 06/10] ide: convert to rq " Tejun Heo
2009-04-29 9:13 ` [PATCH 07/10] block: drop request->hard_* and *nr_sectors Tejun Heo
2009-04-30 13:46 ` Boaz Harrosh
2009-05-04 5:06 ` Tejun Heo
2009-04-29 9:13 ` [PATCH 08/10] block: cleanup rq->data_len usages Tejun Heo
2009-04-30 13:47 ` Boaz Harrosh
2009-04-30 15:35 ` James Bottomley
2009-05-01 18:27 ` Jens Axboe
2009-05-03 1:32 ` Tejun Heo
2009-05-03 13:51 ` Boaz Harrosh
2009-05-04 4:19 ` Tejun Heo
2009-05-03 1:36 ` Tejun Heo
2009-04-29 9:13 ` [PATCH 09/10] ide: " Tejun Heo
2009-04-29 9:13 ` [PATCH 10/10] block: hide request sector and data_len Tejun Heo
2009-04-30 16:07 ` [GIT PATCH] block,scsi,ide: unify " Bartlomiej Zolnierkiewicz
2009-05-01 18:29 ` Jens Axboe
2009-05-03 2:50 ` Tejun Heo
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=49F96E96.5040107@kernel.org \
--to=tj@kernel.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=axboe@kernel.dk \
--cc=jeff@garzik.org \
--cc=linux-ide@vger. \
--cc=linux-kernel@vger.kernel.org \
--cc=petkovbb@gmail.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 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).