From: Jens Axboe <axboe@suse.de>
To: Neil Brown <neilb@suse.de>
Cc: Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, sgunderson@bigfoot.com
Subject: Re: [PATCH] Remove softlockup from invalidate_mapping_pages.
Date: Thu, 20 Apr 2006 11:59:54 +0200 [thread overview]
Message-ID: <20060420095954.GB13279@suse.de> (raw)
In-Reply-To: <17479.22902.770558.600574@cse.unsw.edu.au>
On Thu, Apr 20 2006, Neil Brown wrote:
> On Thursday April 20, axboe@suse.de wrote:
> > > >
> > > > We're not supposed to look at page->index of an unlocked page.
> > >
> > > We're not? Does Jens know that?
> > > __generic_file_splice_read seems to violate this principle!
> >
> > Hmmm, where?
> >
> 2.6.17-rc1-mm1
> fs/splice.c
>
> static int __generic_file_splice_read(struct file *in, struct inode *pipe,
> size_t len, unsigned int flags)
> {
> ...snip....
> do_page_cache_readahead(mapping, in, index, nr_pages);
>
> /*
> * Get as many pages from the page cache as possible..
> * Start IO on the page cache entries we create (we
> * can assume that any pre-existing ones we find have
> * already had IO started on them).
> */
> i = find_get_pages(mapping, index, nr_pages, pages);
>
> /*
> * common case - we found all pages and they are contiguous,
> * kick them off
> */
> if (i && (pages[i - 1]->index == index + i - 1))
> ^^^^^^^^^^^^^^^^^^^^
> ***There and
> goto splice_them;
>
> /*
> * fill shadow[] with pages at the right locations, so we only
> * have to fill holes
> */
> memset(shadow, 0, nr_pages * sizeof(struct page *));
> for (j = 0; j < i; j++)
> shadow[pages[j]->index - index] = pages[j];
> ^^^^^^^^^^^^^^^^
>
> ***There
That code is ancient :-). See -rc2.
--
Jens Axboe
next prev parent reply other threads:[~2006-04-20 9:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060420160549.7637.patches@notabene>
2006-04-20 6:29 ` NeilBrown
2006-04-20 7:38 ` Andrew Morton
2006-04-20 9:24 ` Neil Brown
2006-04-20 9:30 ` Jens Axboe
2006-04-20 9:50 ` Neil Brown
2006-04-20 9:59 ` Jens Axboe [this message]
2006-04-20 10:26 ` Neil Brown
2006-04-20 9:52 ` Andrew Morton
2006-04-20 10:52 ` Jens Axboe
2006-04-26 20:48 ` Steinar H. Gunderson
2006-04-26 20:58 ` Andrew Morton
2006-04-26 21:26 ` Steinar H. Gunderson
2006-05-01 16:07 ` Steinar H. Gunderson
2006-05-13 13:49 ` [PATCH] Remove softlockup from invalidate_mapping_pages. (might be dm related) Steinar H. Gunderson
2006-05-13 14:33 ` Andrew Morton
2006-05-13 14:43 ` Steinar H. Gunderson
2006-05-13 14:51 ` Andrew Morton
2006-05-13 15:00 ` Steinar H. Gunderson
2006-05-13 15:24 ` Andrew Morton
2006-05-13 15:32 ` Steinar H. Gunderson
2006-05-13 15:43 ` Andrew Morton
2006-05-13 17:14 ` Steinar H. Gunderson
2006-05-13 23:28 ` Steinar H. Gunderson
2006-05-13 22:37 ` [dm-devel] " Alasdair G Kergon
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=20060420095954.GB13279@suse.de \
--to=axboe@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@suse.de \
--cc=sgunderson@bigfoot.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
Powered by JetHome