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 <Andriy_Skulysh@xyratex.com> Reviewed-by:
Alexander Boyko <Alexander_Boyko@xyratex.com> Reviewed-by:
Vitaly Fertman <Vitaly_Fertman@xyratex.com> Tested-by:
Kyrylo Shatskyy <kyrylo_shatskyy@xyratex.com> Reviewed-by:
Keith Mannthey <keith.mannthey@intel.com> Reviewed-by:
Prakash Surya <surya1@llnl.gov> Reviewed-by:
Oleg Drokin <oleg.drokin@intel.com> Signed-off-by:
Peng Tao <bergwolf@gmail.com> Signed-off-by:
Andreas Dilger <andreas.dilger@intel.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please sign in to comment