Whamcloud - gitweb
LU-6600 obdclass: race lustre_profile_list 96/14896/7
authorHiroya Nozaki <nozaki.hiroya@jp.fujitsu.com>
Thu, 20 Aug 2015 05:37:23 +0000 (14:37 +0900)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Aug 2015 15:38:43 +0000 (15:38 +0000)
commiteba2a78067ef87a56242e47e626c584624fb1e34
treecb1bcab06fa86083341511e88919c87862be2732
parentaf13cfff297d4882de35fb7c11bf5261293b8287
LU-6600 obdclass: race lustre_profile_list

running multiple mounts at the same time results in
lustre_profile_list corruption when adding a new profile.

This patch adds a new spin_lock to protect the list and
avoid the bug

Signed-off-by: Hiroya Nozaki <nozaki.hiroya@jp.fujitsu.com>
Change-Id: I0d6ef47e9fa3dd9de8bd33d426112242136a9e26
Reviewed-on: http://review.whamcloud.com/14896
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd_class.h
lustre/llite/llite_lib.c
lustre/mdt/mdt_handler.c
lustre/obdclass/class_obd.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount_server.c