Re: [PATCH] [Request for inclusion] Filesystem in Userspace

Miklos Szeredi
2004-11-18T08:17:26Z

> 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