if (rc && pmode)
ldlm_lock_decref(&plock, pmode);
- ptlrpc_req_finished(*reqp);
+ ptlrpc_req_put(*reqp);
*reqp = req;
return rc;
}
PFID(&fid), tgt->ltd_index);
if (req != NULL) {
- ptlrpc_req_finished(req);
+ ptlrpc_req_put(req);
req = NULL;
}
cleanup:
if (req != NULL)
- ptlrpc_req_finished(req);
+ ptlrpc_req_put(req);
/* if all stripes are invalid, return -ENOENT to notify user */
if (!rc && !valid_stripe_count)
!(it->it_disposition & DISP_OPEN_OPEN)) {
if (!(it->it_flags & MDS_OPEN_BY_FID) &&
lmv_dir_retry_check_update(op_data)) {
- ptlrpc_req_finished(*reqp);
+ ptlrpc_req_put(*reqp);
it->it_request = NULL;
it->it_disposition = 0;
*reqp = NULL;
RETURN(rc);
} else if (it_disposition(it, DISP_LOOKUP_NEG) &&
lmv_dir_retry_check_update(op_data)) {
- ptlrpc_req_finished(*reqp);
+ ptlrpc_req_put(*reqp);
it->it_request = NULL;
it->it_disposition = 0;
*reqp = NULL;