Re: Question on set_page_dirty()
From: Stephen C. Tweedie <hidden>
Date: 2002-12-12 12:42:43
From: Stephen C. Tweedie <hidden>
Date: 2002-12-12 12:42:43
Hi, On Thu, 2002-12-12 at 09:29, Ingo Oeser wrote:
set_page_dirty() can be used in all cases, IMHO, since it: - will not sleep
... Unfortunately, it can take both the inode_lock and pagecache_lock spinlocks, so if you use it in the wrong place, with other locks already held, you can cause a deadlock. So you _do_ need to be a bit careful, and you can't just use it with abandon. Cheers, Stephen -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/