Whamcloud - gitweb
LU-1442 llite: cleanup if a page failed to add into cache
authorJinshan Xiong <jinshan.xiong@whamcloud.com>
Mon, 23 Jul 2012 14:09:51 +0000 (22:09 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 27 Jul 2012 23:13:49 +0000 (19:13 -0400)
commit7afc929a07efcbf33e27314776f057432f60b473
tree6a1056ee86ee29134f3e7226257f71d28ceb66a7
parent52257a67e4d56172a4289a12509525154d8c790d
LU-1442 llite: cleanup if a page failed to add into cache

In lustre, we assume that a dirty page must be queued in osc cache
for writing. However, in vvp_io_commit_write(), if a page failed to
add into cache, page dirty flag isn't cleared this will cause the
page will never be added into cache again.

Signed-off-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Change-Id: I1c132c6f1d4f5845682e51850eb895b292fc5f0d
Reviewed-on: http://review.whamcloud.com/3447
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/llite/vvp_io.c