Whamcloud - gitweb
LU-4977 llite: Fix the deadlock in balance_dirty_pages() 49/10149/3
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 29 Apr 2014 04:52:54 +0000 (21:52 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 May 2014 15:15:39 +0000 (15:15 +0000)
commit1fab3bba187c927a85c827c4ff481e30914b5b2a
tree9f5bed87a95a0dc68eec27bf2c7e1a6fe07867d5
parentdd5ceed46a622c9325013b7495ba79e1c1f38419
LU-4977 llite: Fix the deadlock in balance_dirty_pages()

If the page is already dirtied in ll_write_end() and kernel tries
to call balance_dirty_pages() to write back dirty pages in the same
thread, this is deadlock case if the page is already held by clio.

This can also fix the issue of LU-4873.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Iae7f6bd8956e5fc134568d776c9aa3a6b68b1ec5
Reviewed-on: http://review.whamcloud.com/10149
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/rw26.c