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: 45900a77 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>
Showing
- lustre/include/obd_class.h 8 additions, 2 deletionslustre/include/obd_class.h
- lustre/ldlm/ldlm_lib.c 6 additions, 17 deletionslustre/ldlm/ldlm_lib.c
- lustre/obdclass/genops.c 289 additions, 101 deletionslustre/obdclass/genops.c
- lustre/obdclass/obd_config.c 72 additions, 128 deletionslustre/obdclass/obd_config.c
- lustre/obdclass/obd_mount.c 4 additions, 3 deletionslustre/obdclass/obd_mount.c
- lustre/target/tgt_grant.c 10 additions, 5 deletionslustre/target/tgt_grant.c
Loading
Please register or sign in to comment