Whamcloud - gitweb
LU-8480 ofd: hold obd_dev_lock across grant comparison 13/21813/2
authorAndreas Dilger <andreas.dilger@intel.com>
Mon, 8 Aug 2016 17:49:16 +0000 (11:49 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 29 Aug 2016 03:52:11 +0000 (03:52 +0000)
commitcf54bda257dc3287458a9157bb4647f05d8f8469
tree8c7c5d8ed7bea11f7e0683ece5224931913526ae
parent65502be67ac55f919778747cbf1de72dd8bb23f6
LU-8480 ofd: hold obd_dev_lock across grant comparison

Hold obd_dev_lock until the global ofd_tot_* grant values are saved,
so that their comparison is not racy.  Otherwise it is possible to
report grant inconsistencies when multiple clients are unmounted.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I19ffd102b657df2df539d01d182a782aa17ad924
Reviewed-on: http://review.whamcloud.com/21813
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ofd/ofd_grant.c