Skip to content
Snippets Groups Projects
Commit 6d57484b authored by Niu Yawei's avatar Niu Yawei Committed by Oleg Drokin
Browse files

LU-7903 hsm: leaked export refcount


Add missed class_export_put() in mdt_hsm_agent_send().

Signed-off-by: default avatarNiu Yawei <yawei.niu@intel.com>
Change-Id: Ie9119c53f11901573161034a85bfa7bf83ca6ff8
Reviewed-on: http://review.whamcloud.com/21942


Tested-by: Jenkins
Reviewed-by: default avatarBobi Jam <bobijam@hotmail.com>
Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
Reviewed-by: default avatarLai Siyao <lai.siyao@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
parent 288e55b8
No related branches found
No related tags found
No related merge requests found
......@@ -574,6 +574,8 @@ int mdt_hsm_agent_send(struct mdt_thread_info *mti,
*/
exp = cfs_hash_lookup(mdt2obd_dev(mdt)->obd_uuid_hash, &uuid);
if (exp == NULL || exp->exp_disconnected) {
if (exp != NULL)
class_export_put(exp);
/* This should clean up agents on evicted exports */
rc = -ENOENT;
CERROR("%s: agent uuid (%s) not found, unregistering:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment