Marcelo Tosatti writes: > I just thought about this case: > > We find a dead swap cache page, so dead_swap_page goes to 1. > > We call swap_writepage(), but in the meantime the swapin readahead code > got a reference on the swap map for the page. > > We write the page out because "(swap_count(page) > 1)", and we may > not have __GFP_IO set in the gfp_mask. Boom. Hmmm, can't this happen without my patch? Nothing stops people from getting references to the page between the "Page is or was in use?" test and the line which does "TryLockPage(page)". Later, David S. Miller [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug Marcelo Tosatti
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug Marcelo Tosatti
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug Marcelo Tosatti
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug Marcelo Tosatti
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug BERECZ Szabolcs
- Re: page_launder() bug David S. Miller
- Re: page_launder() bug Linus Torvalds
- Re: page_launder() bug Mikulas Patocka
- Re: page_launder() bug Rik van Riel
- Another VM race? (was: page_laun... Mikulas Patocka
- Re: Another VM race? (was: page_... Rik van Riel