From: Jinshan Xiong Date: Thu, 6 Nov 2014 18:00:32 +0000 (-0800) Subject: LU-5781 osc: osc_lock_weight endless loop fix X-Git-Tag: 2.6.93~96 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=74dfa6c3f6111750c773e2484b65302026af6a53;hp=74dfa6c3f6111750c773e2484b65302026af6a53 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 Signed-off-by: Jinshan Xiong Reviewed-on: http://review.whamcloud.com/12362 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bobi Jam Reviewed-by: James Simmons Reviewed-by: Oleg Drokin ---