lkml.org 
[lkml]   [2004]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] per-backing dev unplugging #2
On Fri, Mar 12 2004, Chris Mason wrote:
> On Fri, 2004-03-12 at 15:34, Jens Axboe wrote:
>
> >
> > I don't see how this can make too much of a difference, aside of perhaps
> > just moving the window a little. If page->mapping can disappear here,
> > that's still a possibility.
>
> As Andrew pointed out, the mapping struct won't disappear, but
> page->mapping may go null. So the idea is to use barriers to get a
> trusted copy of page->mapping, and use the copy everywhere.

So trusting an atomic assignment of mapping = page->mapping, it should
work. It feels a bit icky, though.

--
Jens Axboe

-
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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.093 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site