From: Xue jiufei Date: Mon, 23 Jun 2014 20:22:08 +0000 (-0700) Subject: ocfs2/dlm: fix misuse of list_move_tail() in dlm_run_purge_list() X-Git-Tag: omap-for-v3.16/fixes-rc4~63^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a270c6d3c0d7ba914bd82da34152d1102920d805;p=pandora-kernel.git ocfs2/dlm: fix misuse of list_move_tail() in dlm_run_purge_list() When a lockres in purge list but is still in use, it should be moved to the tail of purge list. dlm_thread will continue to check next lockres in purge list. However, code list_move_tail(&dlm->purge_list, &lockres->purge) will do *no* movements, so dlm_thread will purge the same lockres in this loop again and again. If it is in use for a long time, other lockres will not be processed. Signed-off-by: Yiwen Jiang Signed-off-by: joyce.xue Reviewed-by: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed