Re: [PATCH] swapin flush cache bug

From: David S. Miller (
Date: Wed Jun 27 2001 - 19:47:45 EST

NIIBE Yutaka writes:
> (2) Page got swapped in asynchronously, possibly by read-ahead
> Swap in
> [ Page ] <---- [ Disk ]
> K
> The I/O from disk goes through kernel virtual address K.
> We have cache entries indexed by K.

The I/O completion must flush the cache, not the VM subsystem.

You must implement cache flushing at the DMA tranfer end point
to fix the problem you are describing.

David S. Miller
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jun 30 2001 - 21:00:18 EST