[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question on set_page_dirty()
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/