Whamcloud - gitweb
LU-3316 obdclass: fix wrong device put in case of race 34/6334/3
authorMikhail Pershin <mike.pershin@intel.com>
Tue, 14 May 2013 12:17:30 +0000 (16:17 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Aug 2013 07:13:19 +0000 (07:13 +0000)
commit458804418f3c24706db7ad9a46f791e59f008a7d
treeaea486967bd92531052715979d182c82aef4f552
parentb1edba5b8743bb1ba5cd8e554e88f9b2ec34f1e0
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

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: Ia2707d5db84b6bb6e9a5558c08b03028de8b9d50
Reviewed-on: http://review.whamcloud.com/6334
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/local_storage.c