Whamcloud - gitweb
LU-1347 style: removes obsolete EXPORT_SYMTAB macros
[fs/lustre-release.git] / lustre / ptlrpc / ptlrpcd.c
index 4f646a1..32b5b17 100644 (file)
@@ -1,6 +1,4 @@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
+/*
  * GPL HEADER START
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -239,6 +237,12 @@ static int ptlrpcd_steal_rqset(struct ptlrpc_request_set *des,
 void ptlrpcd_add_req(struct ptlrpc_request *req, pdl_policy_t policy, int idx)
 {
         struct ptlrpcd_ctl *pc;
+       char jobid[JOBSTATS_JOBID_SIZE];
+
+       if (req->rq_reqmsg) {
+               lustre_get_jobid(jobid);
+               lustre_msg_set_jobid(req->rq_reqmsg, jobid);
+       }
 
         cfs_spin_lock(&req->rq_lock);
         if (req->rq_invalid_rqset) {