]> git.baikalelectronics.ru Git - kernel.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)
commitad7e4656f34f16d3fd73ed31256f9ee26496e786
tree29d60b76f59d53e4357ff490c41a275aee8048c6
parent792225d4ef6e5c93de5a8e39ea9849ee9dbc629c
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