]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: lustre: llite: reset writeback index in ll_writepages
authorJinshan Xiong <jinshan.xiong@intel.com>
Wed, 27 Apr 2016 22:20:53 +0000 (18:20 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 04:51:58 +0000 (21:51 -0700)
commitc3558553597fb946e9192e13ca23b352f90133ae
tree29d60b76f59d53e4357ff490c41a275aee8048c6
parent610cc3a49fdc563395bc3e65fa4a6aa8f97651eb
staging: lustre: 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>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3416
Reviewed-on: http://review.whamcloud.com/6554
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/rw.c
drivers/staging/lustre/lustre/osc/osc_cache.c