Whamcloud - gitweb
LU-5781 osc: osc_lock_weight endless loop fix 59/12859/2
authorJinshan Xiong <jinshan.xiong@intel.com>
Thu, 6 Nov 2014 18:00:32 +0000 (10:00 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Dec 2014 20:27:12 +0000 (20:27 +0000)
commitef1758a0d3cb9ac3abbe0e60ac689cf3b2aa3a6e
tree34d43c98fae0727310ed04eff6ad502682158bba
parentcebb8fd03635f2f4e8f17c3a902eeba8008b07c4
LU-5781 osc: osc_lock_weight endless loop fix

With huge number of pages to scan by osc_lock_weight() it is likely
CLP_GANG_RESCHED is returned from osc_page_gang_lookup() and the scan
will be repeated again from the start. To be sure that the scan is
progressing across those restarts, next scan should be started from
the last scanned page index plus one.

Xyratex-bug-id: MRP-2145
Change-Id: I60775f2d8f688029d97ad4fe64f9b2698ed278c8
Signed-off-by: Alexander Zarochentsev <alexander.zarochentsev@seagate.com>
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-on: http://review.whamcloud.com/12859
Tested-by: Jenkins
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osc/osc_lock.c