Re: shm bug introduced with pagecache in 2.3.11

Andrea Arcangeli (andrea@suse.de)
Tue, 9 Nov 1999 12:17:29 +0100 (CET)


On 8 Nov 1999, Christoph Rohland wrote:

>Hi folks,
>
>I finally found the change, which gives me
>
>swap_duplicate: unused page

You got also the EIP address of the caller, please resolved it it's very
sensitive.

Could you give a try removing this line:

--- 2.3.26/ipc/shm.c Sun Nov 7 17:33:38 1999
+++ /tmp/shm.c Tue Nov 9 12:16:28 1999
@@ -790,7 +790,6 @@
page = lookup_swap_cache(entry);
if (!page) {
lock_kernel();
- swapin_readahead(entry);
page = read_swap_cache(entry);
unlock_kernel();
if (!page)

(note: the above is not the right fix for the kernel, it's just to verify
that's the problem)

Andrea

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/