public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* shmem_getpage_locked() / swapin_readahead() race in 2.4.4-pre3
@ 2001-04-14 15:59 Marcelo Tosatti
  2001-04-14 19:27 ` Rik van Riel
  2001-04-15 11:54 ` Christoph Rohland
  0 siblings, 2 replies; 6+ messages in thread
From: Marcelo Tosatti @ 2001-04-14 15:59 UTC (permalink / raw)
  To: Christoph Rohland; +Cc: Stephen C. Tweedie, Linus Torvalds, Rik van Riel, lkml


Hi, 

There is a nasty race between shmem_getpage_locked() and
swapin_readahead() with the new shmem code (introduced in 2.4.3-ac3 and
merged in the main tree in 2.4.4-pre3): 

shmem_getpage_locked() finds a page in the swapcache and moves it to the
pagecache as an shmem page, freeing the swapcache and the swap map entry
for this page. (which causes a BUG() in mm/shmem.c:353 since the swap
map entry is being used) 

In the meanwhile, swapin_readahead() is allocating a page and adding it to
the swapcache.

I don't see any clean fix for this one.

Suggestions ? 




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

end of thread, other threads:[~2001-04-18 13:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-14 15:59 shmem_getpage_locked() / swapin_readahead() race in 2.4.4-pre3 Marcelo Tosatti
2001-04-14 19:27 ` Rik van Riel
2001-04-14 23:31   ` [NEED TESTERS] remove swapin_readahead " Marcelo Tosatti
2001-04-17 20:23     ` Stephen C. Tweedie
2001-04-18 12:50       ` Christoph Rohland
2001-04-15 11:54 ` Christoph Rohland

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