Whamcloud - gitweb
LU-3416 llite: reset writeback index in ll_writepages 54/6554/10
authorJinshan Xiong <jinshan.xiong@intel.com>
Sat, 10 Aug 2013 17:48:07 +0000 (10:48 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Aug 2013 06:06:21 +0000 (06:06 +0000)
commitf8480d9e323517a8277d4c0d76b322dfb5fbfcf9
tree39a0e16482fc2f3ff20b384b071dc540cd20f9bb
parentfc587387bacf232b0464f0913b967500aae09511
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: I2b20296e80a6d2a4034be8cf17129bc17780b847
Reviewed-on: http://review.whamcloud.com/6554
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
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