Whamcloud - gitweb
LU-3416 llite: reset writeback index in ll_writepages 57/7657/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Sat, 14 Sep 2013 17:15:40 +0000 (10:15 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 30 Oct 2013 21:56:22 +0000 (21:56 +0000)
commit63f298dcdd104bc1f229e04164c4a5d51c726283
treeb9e23d614c7724831367a2d2c1cdf12b411d1bd4
parenta5502be919a8cf2fd5e1bd3da97e67c132f22318
LU-3416 llite: reset writeback index in ll_writepages

Otherwise after one round the writeback index will become beyond
the file size and ->writepages() turns into an empty operation.

Also, a safety guard is added to limit the wait time for grant to
10 minutes(take recovery into consideration) at maximum in the
osc_enter_cache() function. Otherwise, EDQUOT will be returned to
the applications to start sync write.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I7d0b90ef0c15f069ec63435703622a327b75ad70
Reviewed-on: http://review.whamcloud.com/7657
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Hudson
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/rw.c
lustre/osc/osc_cache.c