LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Tejun Heo <tj@kernel.org>, Jeff Garzik <jeff@garzik.org>,
IDE/ATA development list <linux-ide@vger.kernel.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: request to revert libata-convert-to-block-tagging patches
Date: Mon, 10 Nov 2008 18:10:57 +0100 [thread overview]
Message-ID: <20081110171057.GK26778@kernel.dk> (raw)
In-Reply-To: <alpine.LFD.2.00.0811100754210.3468@nehalem.linux-foundation.org>
On Mon, Nov 10 2008, Linus Torvalds wrote:
>
>
> On Mon, 10 Nov 2008, Jens Axboe wrote:
> > >
> > > Or we could just change the blk-tag.c logic to stop of
> > > find_first_zero_bit() returns >= some_value instead of starting at an
> > > offset? You don't need any extra locking for that.
> >
> > Something like the below.
>
> No, there were two reasons for doing it the way I did it, and this shows
> both. One trivial, one subtle.
>
> > + if (!rq_is_sync(rq))
> > + max_depth = 3 * max_depth / 4;
>
> The trivial one here is that you round down. Imagine what happens if
> "max_depth" was 1.
>
> The subtler one was that the 'use starting offset' means that async and
> sync can _share_ the tagspace, and while you limit async ones to a maximum
> outstanding number, you really cut down on them only when sync ones really
> have filled everything up.
>
> In contrast, limiting like the above means that it's much easier to be in
> the situation where you still have tags to use, but you've used them all
> for reads, and you refuse to start a single write.
Good point. I'll do a counting solution for this instead.
> Anyway, I'll do the revert, since -rc4 is too late to discuss these
> issues. I think we can easily re-do things when everybody is ok with the
> code.
OK, we'll get it into shape for 2.6.29 instead.
--
Jens Axboe
next prev parent reply other threads:[~2008-11-10 17:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-10 5:19 Tejun Heo
2008-11-10 5:30 ` Tejun Heo
2008-11-10 5:48 ` [PATCH] libata: revert convert-to-block-tagging patches Tejun Heo
2008-11-10 12:05 ` request to revert libata-convert-to-block-tagging patches Jens Axboe
2008-11-10 12:09 ` Jens Axboe
2008-11-10 16:00 ` Linus Torvalds
2008-11-10 17:10 ` Jens Axboe [this message]
2008-11-10 13:24 ` Tejun Heo
2008-11-10 16:03 ` Linus Torvalds
2008-11-10 22:55 ` Jeff Garzik
2008-11-12 1:11 ` Linus Torvalds
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=20081110171057.GK26778@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.org \
--subject='Re: request to revert libata-convert-to-block-tagging patches' \
/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
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).