Whamcloud - gitweb
LU-3316 obdclass: fix wrong device put in case of race 61/8461/2
authorMikhail Pershin <mike.pershin@intel.com>
Tue, 3 Dec 2013 02:39:41 +0000 (10:39 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 9 Dec 2013 03:41:20 +0000 (03:41 +0000)
commit7d08b6062418e0ab8ddb97873dd3f30884bb7350
tree9527c4451c16800047a760a8fb41b745c25cdf52
parente190ea42fbda336ab5c60c2fcbbf57edab580eb4
LU-3316 obdclass: fix wrong device put in case of race

The ls_device_put() might be called from local_oid_storage_fini()
wrongly if mutex-protected check failed due to race

This patch is back-ported from the following one:
Lustre-commit: 458804418f3c24706db7ad9a46f791e59f008a7d
Lustre-change: http://review.whamcloud.com/6334

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: I386597e431ded0dd2b63b078200571a00bc5fe96
Signed-off-by: Jian Yu <jian.yu@intel.com>
Reviewed-on: http://review.whamcloud.com/8461
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/local_storage.c