Whamcloud - gitweb
LU-2779 osc: osc_extent_wait() shouldn't be interruptible 19/5419/4
authorJinshan Xiong <jinshan.xiong@intel.com>
Wed, 13 Feb 2013 19:40:19 +0000 (11:40 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Sep 2013 18:28:07 +0000 (18:28 +0000)
commit26345bee6b04d9e82019a42dfd4f0d4c96f97b2e
tree81554d6cb5fd379434ce864853012d6929d590b4
parent7168ea89702ebf92eae714c9146c1f86ac7b3e06
LU-2779 osc: osc_extent_wait() shouldn't be interruptible

Otherwise it will hit the assertion at cl_lock.c:

   cl_lock.c:1967:discard_cb())
ASSERTION( (!(page->cp_type == CPT_CACHEABLE) ||
(!PageWriteback(cl_page_vmpage(env, page)))) ) failed:

This is because in osc_lock_flush() we have to make sure the IO
is finished before discarding the pages.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I296ab35d26b861f3c57ddba9f74564aa439aaa0b
Reviewed-on: http://review.whamcloud.com/5419
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osc/osc_cache.c