lkml.org 
[lkml]   [2010]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [fuse-devel] [PATCH] FUSE/CUSE: implement direct mmap support
From
Date
On Wed, 10 Feb 2010, Tejun Heo wrote:
> > Okay, lets be a little clearer. There are client side maps and server
> > side maps. Client side maps are naturally aligned (same offset ->
> > same page).
>
> Same offset -> same page doesn't hold.

Right, I really meant same page -> same offset. If the same offset is
mapped to multiple pages: no problem. If the same page is mapped to
multiple offsets, then obviously it's not going to work properly.

> Can you please elaborate how you think the thing can work without
> referencing the proposed implementation? Let's find out where the
> misundertanding is.

Thinking about it I'm not really sure...

Maybe the problem is that the propsed solution allows too much
freedom. Normally there's a 1:1 relationship between pages and
offsets. But we want to break that for CUSE, because two different
mappings of a char dev might point to completely different pages,
right?

When does that happen? Can it happen that two mappings of the same
file descriptor will have different backing pages?

Thanks,
Miklos


\
 
 \ /
  Last update: 2010-02-10 13:17    [W:0.071 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site