Commit f333b77d authored by Hongchao Zhang's avatar Hongchao Zhang Committed by Oleg Drokin
Browse files

LU-13719 lov: doesn't check lov_refcount

In lov_cleanup, the check of each OSC is protected by
lov_tgt_getrefs, which will increment the "lov_refcount",
so the "lov_refcount" shouldn't be checked inside because
it is always larger than 0.

Change-Id: I21423d4345190b3e02eb00734c127e35cbc9b1af
Signed-off-by: default avatarHongchao Zhang <>

Tested-by: default avatarjenkins <>
Tested-by: default avatarMaloo <>
Reviewed-by: default avatarLai Siyao <>
Reviewed-by: default avatarBobi Jam <>
Reviewed-by: default avatarOleg Drokin <>
parent 492428ec
......@@ -828,8 +828,7 @@ static int lov_cleanup(struct obd_device *obd)
/* Inactive targets may never have connected */
if (lov->lov_tgts[i]->ltd_active ||
if (lov->lov_tgts[i]->ltd_active)
/* We should never get here - these
* should have been removed in the
* disconnect. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment