On Mon, 2008-03-24 at 11:24 -0700, Hiroshi Shimamoto wrote:Possibly yeah, Nick, Hugh? I worry about this, Once we free the swap entry with swap_entry_free(), and drop the swap_lock, another task is basically free to re-use that swap location and try to insert another page in that same spot in add_to_swap() - read_swap_cache_async() can't race because it would mean it still has a swap entry pinned. However, add_to_swap() can already handle the race, because it used to race against read_swap_cache_async(). It also swap_free()s the entry so as to not leak entries. So I think this is indeed correct. [ I ought to find some time to port the concurrent page-cache patches on top of Nick's latest lockless series, Hugh's suggestion makes the speculative get much nicer. ] Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> --
| David Miller | [GIT]: Networking |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Rafael J. Wysocki | [Bug #11264] Invalid op opcode in kernel/workqueue |
| Arjan van de Ven | [patch] Add basic sanity checks to the syscall execution patch |
git: | |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Kevin Ballard | Re: git on MacOSX and files with decomposed utf-8 file names |
| Andreas Hildebrandt | CVS-$Id:$ replacement in git? |
| Jakub Narebski | Re: bug: git-sh-setup should not be in $PATH |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Darren Spruell | Re: OpenBSD as Virtualbox guest |
| Nick Guenther | Re: Real men don't attack straw men |
| Alexey Suslikov | OT: OpenBSD on Asus eeePC |
| Michael Chan | Re: bnx2 dirver's firmware images |
| Indan Zupancic | Re: Realtek 8111C transmit timed out |
| Alexey Dobriyan | Re: [GIT]: Networking |
| John P Poet | Realtek 8111C transmit timed out |
