X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fclient.c;h=35b14437c51366d1d0525154417898b0ff409c0c;hp=5b50c0c20e6811b969abeaf54f1c4314b964942c;hb=f641913a348ec0179cdc599baa93f74aa64f9943;hpb=388111848489ef99b1fa31ce8fef255ab9c08e84 diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 5b50c0c..35b1443 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -1027,7 +1027,6 @@ EXPORT_SYMBOL(ptlrpc_set_add_cb); void ptlrpc_set_add_req(struct ptlrpc_request_set *set, struct ptlrpc_request *req) { - char jobid[JOBSTATS_JOBID_SIZE]; LASSERT(cfs_list_empty(&req->rq_set_chain)); /* The set takes over the caller's request reference */ @@ -1036,10 +1035,8 @@ void ptlrpc_set_add_req(struct ptlrpc_request_set *set, cfs_atomic_inc(&set->set_remaining); req->rq_queued_time = cfs_time_current(); - if (req->rq_reqmsg) { - lustre_get_jobid(jobid); - lustre_msg_set_jobid(req->rq_reqmsg, jobid); - } + if (req->rq_reqmsg != NULL) + lustre_msg_set_jobid(req->rq_reqmsg, NULL); if (set->set_producer != NULL) /* If the request set has a producer callback, the RPC must be