From 22e5d54f776b9b0516cdf90b416c8c082702d3d3 Mon Sep 17 00:00:00 2001 From: panda Date: Thu, 3 Dec 2009 16:52:52 +0000 Subject: [PATCH] b=21477 i=Johann Lombardi i=Dmitry Zogin check connection for NULL (for the obdecho client) --- lustre/obdfilter/filter_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/obdfilter/filter_io.c b/lustre/obdfilter/filter_io.c index d579f5f..a42568f 100644 --- a/lustre/obdfilter/filter_io.c +++ b/lustre/obdfilter/filter_io.c @@ -656,7 +656,8 @@ static int filter_preprw_write(int cmd, struct obd_export *exp, struct obdo *oa, LASSERT(objcount == 1); LASSERT(obj->ioo_bufcnt > 0); - if (exp->exp_connection->c_peer.nid == exp->exp_connection->c_self) + if (exp->exp_connection && + exp->exp_connection->c_peer.nid == exp->exp_connection->c_self) localreq = 1; push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); -- 1.8.3.1