From e2b17d9a9548518856049dba89fa01d1156d7d06 Mon Sep 17 00:00:00 2001 From: yury Date: Wed, 5 Mar 2008 20:48:10 +0000 Subject: [PATCH] b=14997 r=vitaly,shadow - fixes packing of lru resize info into rpc reply. --- lustre/ldlm/ldlm_lib.c | 1 - lustre/ptlrpc/niobuf.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index c41b8c9..b4df9c6 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1832,7 +1832,6 @@ int target_pack_pool_reply(struct ptlrpc_request *req) ENTRY; if (!req->rq_export || !req->rq_export->exp_obd || - !req->rq_export->exp_obd->obd_namespace || !exp_connect_lru_resize(req->rq_export)) { lustre_msg_set_slv(req->rq_repmsg, 0); lustre_msg_set_limit(req->rq_repmsg, 0); diff --git a/lustre/ptlrpc/niobuf.c b/lustre/ptlrpc/niobuf.c index 0965e4e..8c9f09a 100644 --- a/lustre/ptlrpc/niobuf.c +++ b/lustre/ptlrpc/niobuf.c @@ -342,8 +342,7 @@ int ptlrpc_send_reply (struct ptlrpc_request *req, int may_be_difficult) lustre_msg_set_opc(req->rq_repmsg, req->rq_reqmsg ? lustre_msg_get_opc(req->rq_reqmsg) : 0); - if (req->rq_export && req->rq_export->exp_obd) - target_pack_pool_reply(req); + target_pack_pool_reply(req); if (req->rq_export == NULL || req->rq_export->exp_connection == NULL) conn = ptlrpc_get_connection(req->rq_peer, req->rq_self, NULL); -- 1.8.3.1