public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: Tejun Heo <tj@kernel.org>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
	petkovbb@googlemail.com
Subject: Re: [block #for-next] block: clear req->errors on bio completion only  for fs requests
Date: Thu, 16 Apr 2009 08:19:49 +0200	[thread overview]
Message-ID: <20090416061949.GQ5178@kernel.dk> (raw)
In-Reply-To: <49E671D8.1090002@kernel.org>

On Thu, Apr 16 2009, Tejun Heo wrote:
> Impact: subtle behavior change
> 
> For fs requests, rq is only carrier of bios and rq error status as a
> whole doesn't mean much.  This is the reason why rq->errors is being
> cleared on each partial completion of a request as on each partial
> completion the error status is transferred to the respective bios.
> 
> For pc requests, rq->errors is used to carry error status to the
> issuer and thus __end_that_request_first() doesn't clear it on such
> cases.
> 
> The condition was fine till now as only fs and pc requests have used
> bio and thus the bio completion path.  However, future changes will
> unify data accesses to bio and all non fs users care about rq error
> status.  Clear rq->errors on bio completion only for fs requests.
> 
> In general, the implicit clearing is a bit too subtle especially as
> the meaning of rq->errors is completely dependent on low level
> drivers.  Unifying / cleaning up rq->errors usage and letting llds
> manage it would be better.  TODO comment added.
> 
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Jens Axboe <axboe@kernel.dk>
> ---
> Jens, can you please ack this patch?  With FUJITA's scsi_lib cleanup
> and Borislav's patch to make ide not use preallocated data structures,
> this is the only block bit which is necessary for ide cleanup
> patchets.  If you're okay with it, I'd like to push this through
> Bartlomiej's tree.

Sure, you can add my acked-by.

-- 
Jens Axboe


  reply	other threads:[~2009-04-16  6:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15 23:46 [block #for-next] block: clear req->errors on bio completion only for fs requests Tejun Heo
2009-04-16  6:19 ` Jens Axboe [this message]
2009-04-16  6:22   ` 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=20090416061949.GQ5178@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=bzolnier@gmail.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petkovbb@googlemail.com \
    --cc=tj@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