-
Alexandr Boyko authored
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>
Alexandr Boyko authoredThe 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>
tgt_grant.c 51.15 KiB