[parisc-linux] rmap: parisc __flush_dcache_page
James Bottomley
James.Bottomley at steeleye.com
Thu Apr 8 12:49:55 MDT 2004
On Thu, 2004-04-08 at 13:42, Andrea Arcangeli wrote:
> What you miss is that the problem is not in flush_dcache_page, the
> problem is that the _other_ users of the prio-tree may take as long as a
> timeslice. So it's the _other_ user that you've no control about (i.e.
> truncate) that may take timeslices with irq disabled.
So the problem isn't in the parisc code, it's in the generic vm code,
OK.
> But I've an fairly optimal solution for you, you should make it a
> read_write spinlock, with the readers not disabling interrupts, and the
> writer disabling interrupts, the writer of the prio-tree will not take a
> timeslice, the readers instead will take a timeslice, but since they're
> readers and you've only to read in the flush_dcache_page irq context,
> you don't need to disable irqs for the readers. I don't have better
> solutions than this one at the moment (yeah there's the rcu reading of
> the prio-tree but I'd leave it for later...)
Yes, I'll go for that. The write need only be done on vma insert, which
should be very fast. So do we agree this is a generic solution, or were
you still thinking of trying to abstract it per-arch?
James
More information about the parisc-linux
mailing list