Re: why are some low-level MM routines being exported?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 5 April 2010 01:21:52 +0900, Minchan Kim wrote:
> > 
> Until now, other file system don't need it. 
> Why do you need?

To avoid deadlocks.  You tell logfs to write out some locked page, logfs
determines that it needs to run garbage collection first.  Garbage
collection can read any page.  If it called find_or_create_page() for
the locked page, you have a deadlock.

I don't know how (or if) jffs2 and ubifs can avoid this particular
scenario.  The other filesystems lack garbage collection, so the problem
does not exist.

Jörn

-- 
Joern's library part 5:
http://www.faqs.org/faqs/compression-faq/part2/section-9.html

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]