Re: [PATCH] swapin flush cache bug

From: David S. Miller (davem@redhat.com)
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.

Later,
David S. Miller
davem@redhat.com
-
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/



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