lkml.org 
[lkml]   [2004]   [Nov]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] [Request for inclusion] Filesystem in Userspace
FromMiklos Szeredi <>
DateThu, 18 Nov 2004 09:17:13 +0100
> I know I've asked before... but how is the "fuse-userspace-part
> swapped out and memory full of dirty data on fuse" deadlock solved?

By either

  1) not allowing share writable mappings 

  2) doing non-blocking asynchronous writepage

In the first case there will never be dirty data, since normal writes
go synchronously through the page cache.

In the second case there is no deadlock, because the memory subsystem
doesn't wait for data to be written.  If the filesystem refuses to
write back data in a timely manner, memory will get full and OOM
killer will go to work.  Deadlock simply cannot happen.

Miklos
-
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:08    [from the cache]
©2003-2008