From: Jens Axboe <axboe@suse.de>
To: Chris Mason <mason@suse.com>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, kenneth.w.chen@intel.com
Subject: Re: [PATCH] per-backing dev unplugging #2
Date: Sun, 14 Mar 2004 21:47:01 +0100 [thread overview]
Message-ID: <20040314204701.GA2649@suse.de> (raw)
In-Reply-To: <1079297032.4185.277.camel@watt.suse.com>
On Sun, Mar 14 2004, Chris Mason wrote:
> On Fri, 2004-03-12 at 15:51, Jens Axboe wrote:
> > On Fri, Mar 12 2004, Chris Mason wrote:
> > > On Fri, 2004-03-12 at 15:34, Jens Axboe wrote:
> > >
> > > >
> > > > I don't see how this can make too much of a difference, aside of perhaps
> > > > just moving the window a little. If page->mapping can disappear here,
> > > > that's still a possibility.
> > >
> > > As Andrew pointed out, the mapping struct won't disappear, but
> > > page->mapping may go null. So the idea is to use barriers to get a
> > > trusted copy of page->mapping, and use the copy everywhere.
> >
> > So trusting an atomic assignment of mapping = page->mapping, it should
> > work. It feels a bit icky, though.
>
> I reproduced on 2.6.4-mm1 + backing dev, but 2.6.4-mm1 alone ran fine.
> To make a long story short, the swap address space and backing dev don't
> define an unplug_io_fn. I was able to reproduce quickly with a swap
> heavy workload. The patch below should fix the oops, but probably isn't
> correct solution since no queues will get unplugged while waiting on
> swap pages.
Duh of course, that's pretty silly actually. So the question is if we
want to keep assigning a dummy unplug_io_fn (default_backing_dev already
has it), or just keep the check. I propose to check like Chris added,
and just kill the default_unplug_io_fn() from readahead.c
Thanks for fixing this Chris, I wonder why your back trace from this
oops was so screwy (->unplug_io_fn() for the swap space was zero-filled,
no?)
--
Jens Axboe
next prev parent reply other threads:[~2004-03-14 20:47 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-11 8:36 Jens Axboe
2004-03-11 22:44 ` Nathan Scott
2004-03-12 1:23 ` William Lee Irwin III
2004-03-12 6:41 ` Ingo Oeser
2004-03-12 8:04 ` Jens Axboe
2004-03-12 19:51 ` Chris Mason
2004-03-12 20:03 ` Andrew Morton
2004-03-12 20:02 ` Jens Axboe
2004-03-12 20:34 ` Chris Mason
2004-03-12 20:34 ` Jens Axboe
2004-03-12 20:41 ` Chris Mason
2004-03-12 20:51 ` Jens Axboe
2004-03-14 20:43 ` Chris Mason
2004-03-14 20:47 ` Jens Axboe [this message]
2004-03-14 20:57 ` Chris Mason
2004-03-14 21:04 ` Andrew Morton
2004-03-14 21:09 ` Jens Axboe
2004-03-15 21:58 ` Chris Mason
2004-03-12 20:06 ` Chris Mason
2004-03-16 5:22 Jeremy Higdon
2004-03-16 6:36 ` Nick Piggin
2004-03-16 7:20 ` Jeremy Higdon
2004-03-16 7:38 ` Jens Axboe
2004-03-17 0:23 ` Jeremy Higdon
2004-03-16 7:46 ` Nick Piggin
2004-03-16 7:29 ` Jens Axboe
2004-03-16 17:20 ` Jesse Barnes
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=20040314204701.GA2649@suse.de \
--to=axboe@suse.de \
--cc=akpm@osdl.org \
--cc=kenneth.w.chen@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mason@suse.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
all inboxes | Powered by JetHome®