staging/lustre/ldlm: Hold lock when clearing flag
staging/lustre/ldlm: Hold lock when clearing flag

This patch moves lock's skip flag clearing from lru-delete to
lru-add code to prevent clearing lock's flag without resource lock
protection.

Signed-off-by: Li Xi <851d64d5999db0eb96e316fa1cf38023249a530a@ddn.com>
Signed-off-by: Bobi Jam <7d01b33a7d567b444ad639b417798985dff55ff9@intel.com>
Reviewed-on: http://review.whamcloud.com/8772
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4269
Reviewed-by: Andreas Dilger <fb9bfcd2d82414390637ce05921b7d9f9341a408@intel.com>
Reviewed-by: Jinshan Xiong <4f9c0b864b7f9eb8a22fd0e8ad685c34bbc01268@intel.com>
Signed-off-by: Oleg Drokin <65b2ca07820e940f66d8901813c729ec10a548f5@intel.com>
Signed-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs