X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fosc%2Fosc_cache.c;h=e43511afbb53ebc744a31f0243ffe6fa05c0fe73;hb=2711e4428bc9b1574202ccd8c566557fb102424a;hp=b462fcc3280b93eafcdb55d332977f337cecb876;hpb=9ead7830a599e94abd819c94f41ef4e6fb06d289;p=fs%2Flustre-release.git diff --git a/lustre/osc/osc_cache.c b/lustre/osc/osc_cache.c index b462fcc..e43511a 100644 --- a/lustre/osc/osc_cache.c +++ b/lustre/osc/osc_cache.c @@ -2063,7 +2063,7 @@ static void osc_check_rpcs(const struct lu_env *env, struct client_obd *cli, while ((osc = osc_next_obj(cli)) != NULL) { struct cl_object *obj = osc2cl(osc); - struct lu_ref_link *link; + struct lu_ref_link link; OSC_IO_DEBUG(osc, "%lu in flight\n", rpcs_in_flight(cli)); @@ -2074,7 +2074,8 @@ static void osc_check_rpcs(const struct lu_env *env, struct client_obd *cli, cl_object_get(obj); client_obd_list_unlock(&cli->cl_loi_list_lock); - link = lu_object_ref_add(&obj->co_lu, "check", cfs_current()); + lu_object_ref_add_at(&obj->co_lu, &link, "check", + cfs_current()); /* attempt some read/write balancing by alternating between * reads and writes in an object. The makes_rpc checks here @@ -2115,7 +2116,8 @@ static void osc_check_rpcs(const struct lu_env *env, struct client_obd *cli, osc_object_unlock(osc); osc_list_maint(cli, osc); - lu_object_ref_del_at(&obj->co_lu, link, "check", cfs_current()); + lu_object_ref_del_at(&obj->co_lu, &link, "check", + cfs_current()); cl_object_put(env, obj); client_obd_list_lock(&cli->cl_loi_list_lock);