Whamcloud - gitweb
LU-9286 ptlrpc: fix wrong error handlers
[fs/lustre-release.git] / lustre / osc / osc_request.c
index d2086a1..3c4150a 100644 (file)
@@ -650,7 +650,7 @@ static int osc_destroy(const struct lu_env *env, struct obd_export *exp,
                rc = l_wait_event_exclusive(cli->cl_destroy_waitq,
                                            osc_can_send_destroy(cli), &lwi);
                if (rc) {
-                       ptlrpc_request_free(req);
+                       ptlrpc_req_finished(req);
                        RETURN(rc);
                }
        }