public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Switching TestSetPageLocked to trylock_page
@ 2008-07-31  7:26 Nick Piggin
  2008-07-31  7:38 ` KOSAKI Motohiro
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Nick Piggin @ 2008-07-31  7:26 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton, Linux Kernel Mailing List

Hi,

I'm wondering if I could get a patch merged which changes all
TestSetPageLocked and replaces them with trylock_page?

It would be done so there are no functional changes.

The reason I want to (aside from having a slightly more
intuitive API), is to facilitate the implementation of lockdep
on page lock, and also to use lock semantics bitops for the
lock rather than the big-hammer barriers that come with
test_and_set_bit.

The lock bitops stuff is one of the parts of my patchset to speed
up page lock functions (which results in nearly 50% faster
pagecache throughput on my G5, and even slightly faster on x86)...

Anyway, I remember you said these kinds of changes are appropriate
for just after -rc1, and I agree it shouldn't cause much pain.

Fixing up patch conflicts is literally a matter of
s/!TestSetPageLocked/trylock_page
s/TestSetPageLocked/!trylock_page

Thoughts?

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-08-05  5:09 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-31  7:26 Switching TestSetPageLocked to trylock_page Nick Piggin
2008-07-31  7:38 ` KOSAKI Motohiro
2008-07-31  9:33 ` Peter Zijlstra
2008-08-05  3:14 ` Nick Piggin
2008-08-05  3:28   ` Linus Torvalds
2008-08-05  3:41     ` Nick Piggin
2008-08-05  3:57       ` Andrew Morton
2008-08-05  4:01         ` Benjamin Herrenschmidt
2008-08-05  4:18           ` Nick Piggin
2008-08-05  4:09         ` Nick Piggin
2008-08-05  4:32         ` Linus Torvalds
2008-08-05  4:44           ` Nick Piggin
2008-08-05  4:57             ` Linus Torvalds
2008-08-05  5:09               ` Nick Piggin
2008-08-05  4:25       ` Linus Torvalds
2008-08-05  4:46         ` Nick Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox