Whamcloud - gitweb
LU-4134 obdclass: obd_device improvement 40/29740/3
authorAlexander Boyko <alexander.boyko@seagate.com>
Thu, 15 Jun 2017 14:25:58 +0000 (17:25 +0300)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 4 Jan 2018 17:21:18 +0000 (17:21 +0000)
commit09debb54bcf6d04ca9ff257fa721260f80ce8138
tree47dc2bb91f615b3fa42c0c08323e5f65f133f399
parentb9b97cc84d7462913ecaefd24ff91ddfcbdda3aa
LU-4134 obdclass: obd_device improvement

The patch removes self exports from obd's reference counting which
allows to avoid freeing of self exports by zombie thread.
A pair of functions class_register_device()/class_unregister_device()
is to make sure that an obd can not be referenced again once its
refcount reached 0. For target_handle_connect() take a reference for
obd_device during finding it by name.

Fix grant mismatch message
"tot_granted 4194304 != fo_tot_granted".

Lustre-change: https://review.whamcloud.com/8045
Lustre-commit: 45900a7777ac02130d8bf65724c4b6cffca9d546

Signed-off-by: Vladimir Saveliev <vladimir.saveliev@seagate.com>
Signed-off-by: Alexey Lyashkov <alexey.lyashkov@seagate.com>
Signed-off-by: Alexander Boyko <alexander.boyko@seagate.com>
Seagate-bug-id: MRP-2139 MRP-3267
Change-Id: I9cc6860431c6bb7db6983e0d15a5d3d2b564265e
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/29740
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/include/obd_class.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/genops.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c
lustre/target/tgt_grant.c