提交 2054606a 编写于 作者: N Nikita Danilov 提交者: Linus Torvalds

[PATCH] doc: Locking update

Make the Locking document truer.
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 bd53b714
...@@ -219,8 +219,12 @@ This may also be done to avoid internal deadlocks, but rarely. ...@@ -219,8 +219,12 @@ This may also be done to avoid internal deadlocks, but rarely.
If the filesytem is called for sync then it must wait on any If the filesytem is called for sync then it must wait on any
in-progress I/O and then start new I/O. in-progress I/O and then start new I/O.
The filesystem should unlock the page synchronously, before returning The filesystem should unlock the page synchronously, before returning to the
to the caller. caller, unless ->writepage() returns special WRITEPAGE_ACTIVATE
value. WRITEPAGE_ACTIVATE means that page cannot really be written out
currently, and VM should stop calling ->writepage() on this page for some
time. VM does this by moving page to the head of the active list, hence the
name.
Unless the filesystem is going to redirty_page_for_writepage(), unlock the page Unless the filesystem is going to redirty_page_for_writepage(), unlock the page
and return zero, writepage *must* run set_page_writeback() against the page, and return zero, writepage *must* run set_page_writeback() against the page,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册