From 9e78d87a4d4de05c643a607c15cc2ac9b996c179 Mon Sep 17 00:00:00 2001 From: ericm Date: Wed, 30 Apr 2008 17:19:03 +0000 Subject: [PATCH] branch: b_release_1_6_5 set msghdr flags right before rpc sent out. b=15487 r=rread r=shadow --- lustre/ptlrpc/client.c | 1 - lustre/ptlrpc/niobuf.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index b7b22ec..bca2b1b 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -547,7 +547,6 @@ ptlrpc_prep_req_pool(struct obd_import *imp, __u32 version, int opcode, atomic_set(&request->rq_refcount, 1); lustre_msg_set_opc(request->rq_reqmsg, opcode); - lustre_msghdr_set_flags(request->rq_reqmsg, imp->imp_msghdr_flags); RETURN(request); } diff --git a/lustre/ptlrpc/niobuf.c b/lustre/ptlrpc/niobuf.c index d8960d2..f0e86c0 100644 --- a/lustre/ptlrpc/niobuf.c +++ b/lustre/ptlrpc/niobuf.c @@ -474,6 +474,8 @@ int ptl_send_rpc(struct ptlrpc_request *request, int noreply) lustre_msg_set_type(request->rq_reqmsg, PTL_RPC_MSG_REQUEST); lustre_msg_set_conn_cnt(request->rq_reqmsg, request->rq_import->imp_conn_cnt); + lustre_msghdr_set_flags(request->rq_reqmsg, + request->rq_import->imp_msghdr_flags); if (!noreply) { LASSERT (request->rq_replen != 0); -- 1.8.3.1