[parisc-linux] rmap: parisc __flush_dcache_page
Andrea Arcangeli
andrea at suse.de
Thu Apr 8 09:34:12 MDT 2004
On Thu, Apr 08, 2004 at 10:28:44AM -0500, James Bottomley wrote:
> Exactly why wouldn't a simple spinlock to protect page->mapping work? I
> know we don't want to bloat struct page, but such a thing could go in
> struct address_space?
yes, the spinlock in struct address_space would be enough, and that's
what 2.4 does too, Andrew changed it to a semaphore in 2.6 but it can be
made a spinlock again. Then you can fix it (as far as you never call it
from an irq and as far as you don't generate exceptions inside the
critical section, but I'm sure you don't).
More information about the parisc-linux
mailing list