Whamcloud - gitweb
LU-9725 lwp: wait on deregister 61/28161/2
authorNiu Yawei <yawei.niu@intel.com>
Thu, 20 Jul 2017 23:46:25 +0000 (16:46 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 21 Jul 2017 17:06:11 +0000 (17:06 +0000)
commitab0d0c35b3de894f38f8941380d137848751c6eb
tree65d9e2672f621dd976b0cb6c099bf405366589dd
parent58fd06e4d9fcee95f5c60bc8120d782b61f0823c
LU-9725 lwp: wait on deregister

When lustre_deregister_lwp_item() is being called, it should wait
for the inflight callback done before moving on to free the data
used by the callback.

This patch is back-ported from the following one:
Lustre-commit: 5d5702a3ec24cd1bc7effbadb13d272fa51dff05
Lustre-change: https://review.whamcloud.com/27987

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I9c27a0ae4c765147fd183b78bf3693a66e7511dc
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-on: https://review.whamcloud.com/28161
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/obd_mount_server.c