Thread (3 messages) 3 messages, 3 authors, 2002-12-12

Re: Question on set_page_dirty()

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help