Whamcloud - gitweb
LU-5781 osc: osc_lock_weight endless loop fix 62/12362/3
authorJinshan Xiong <jinshan.xiong@intel.com>
Thu, 6 Nov 2014 18:00:32 +0000 (10:00 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 4 Jan 2015 18:06:45 +0000 (18:06 +0000)
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/12362
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

No differences found