Re: 2.4.18(19) swapcache oops

j-nomura@ce.jp.nec.com
Fri, 16 Aug 2002 13:19:22 +0900 (JST)


Thank you for the solutions.
Your first patch seems to fix the problem in 2.4.

As to the second fix from 2.5.32, it can't be applicable to 2.4, can it?
try_to_swap_out() may call add_to_swap_cache() with PG_lru page.

From: Andrew Morton <akpm@zip.com.au>
Subject: Re: 2.4.18(19) swapcache oops
Date: Thu, 15 Aug 2002 13:21:17 -0700

> In 2.5, it is effectively:
>
> void lru_cache_add(struct page * page)
> {
> spin_lock(&pagemap_lru_lock);
> if (TestSetPageLRU(page))
> BUG();
> add_page_to_inactive_list(page);
> spin_unlock(&pagemap_lru_lock);
> }
>
> which is what should be tested in 2.4. It's stricter, and significantly
> faster.

Best regards.

--
NOMURA, Jun'ichi <j-nomura@ce.jp.nec.com, nomura@hpc.bs1.fc.nec.co.jp>
HPC Operating System Group, 1st Computers Software Division,
Computers Software Operations Unit, NEC Solutions.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/