Re: [PATCH] swapin flush cache bug

David S. Miller (davem@redhat.com)
Wed, 27 Jun 2001 17:47:45 -0700 (PDT)


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/