From: Andriy Skulysh Date: Tue, 26 Nov 2013 02:04:58 +0000 (+0800) Subject: staging/lustre/ptlrpc: Fix race during exp_flock_hash creation X-Git-Tag: v3.14-rc1~150^2~716 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0b58afa7df7c13d918bbddf75485346edfefe20;p=pandora-kernel.git staging/lustre/ptlrpc: Fix race during exp_flock_hash creation During race exp_flock_hash can be created 2 times. It is created & assigned without any lock. Move hash initialization from ldlm_flock_blocking_link() to ldlm_init_export() Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2835 Lustre-change: http://review.whamcloud.com/5471 Signed-off-by: Andriy Skulysh Reviewed-by: Alexander Boyko Reviewed-by: Vitaly Fertman Tested-by: Kyrylo Shatskyy Reviewed-by: Keith Mannthey Reviewed-by: Prakash Surya Reviewed-by: Oleg Drokin Signed-off-by: Peng Tao Signed-off-by: Andreas Dilger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed