linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave Jones <dave@denial.force9.co.uk>
To: Steve Dodd <steved@loth.demon.co.uk>
Cc: Linux Kernel Mailing List <linux-kernel@vger.rutgers.edu>,
	linux-mm@kvack.org
Subject: Re: [PATCH] remove_inode_page rewrite.
Date: Wed, 10 May 2000 18:25:10 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0005101821260.17653-100000@neo.local> (raw)
In-Reply-To: <20000510111035.A685@loth.demon.co.uk>

On Wed, 10 May 2000, Steve Dodd wrote:

> Now that invalidate_inode_page isn't calling sync_page, there seems to be
> no reason to drop and retake the spinlock, I agree.

*nod*

> > +	head = &inode->i_mapping->pages;
> That shouldn't be necessary - nobody is likely to change the address of
> inode->i_mapping->pages under us :)

I spotted that, but wasn't entirely sure that the pagecache_lock was
enough to ensure this. With the line above removed also, this means that
invalidate_inode_pages becomes a lot faster as we only pass through the
list once, so maybe holding the spinlock for the whole function isn't such
a big deal.

Even if the race I thought was there doesn't exist, this could be worth
adding for a worthwhile performance increase. I'll do some performance
tests in the next day or so.

regards,

-- 
Dave.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

  reply	other threads:[~2000-05-10 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-09 20:14 Dave Jones
2000-05-10 10:10 ` Steve Dodd
2000-05-10 17:25   ` Dave Jones [this message]
2000-05-10 20:55     ` Dave Jones

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=Pine.LNX.4.21.0005101821260.17653-100000@neo.local \
    --to=dave@denial.force9.co.uk \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=linux-mm@kvack.org \
    --cc=steved@loth.demon.co.uk \
    /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