* host object */
if (cl_object_same(oio->oi_cl.cis_obj, slice->cls_obj))
oio->oi_lockless = 1;
- } else
- lock->ols_owner = NULL;
+ }
}
static int osc_lock_lockless_fits_into(const struct lu_env *env,
if (!(need->cld_enq_flags & CEF_NEVER))
return 0;
- /* To solve the problem of stacking echo client upon osc directly.
- * see bug 22147 for details.
- */
+ /* lockless lock should only be used by its owning io. b22147 */
return (lock->ols_owner == osc_env_io(env));
}