Whamcloud - gitweb
LU-6447 mdt: mdt_identity_upcall to not block with rwlock held 32/14432/5
authorOleg Drokin <oleg.drokin@intel.com>
Fri, 10 Apr 2015 02:29:20 +0000 (22:29 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 11 Aug 2016 05:52:22 +0000 (05:52 +0000)
commite8273a3dd71c4e6ab5ca9de3fbfbc0f7603d6930
tree4f50a821596a3ea23bbf6c9a96667f6ec313a432
parent7334a2d33cc4cf4cda0c81b126c4cb8ab28a888d
LU-6447 mdt: mdt_identity_upcall to not block with rwlock held

mdt_identity_upcall is currently calling call_usermodehelper
with an rwlock held, which is a no-no since it allocates memory
and schedules. Just replace the rwlock with a rw_semaphore.

Change-Id: I7b063a4db47313fbae6241da7bcec2c397b8e8c4
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-on: http://review.whamcloud.com/14432
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/include/upcall_cache.h
lustre/mdt/mdt_identity.c
lustre/mdt/mdt_lproc.c
lustre/obdclass/upcall_cache.c