From 38bbd8a9eef9e034cd1401cea9f3b04a3ef586b3 Mon Sep 17 00:00:00 2001 From: yury Date: Fri, 7 Nov 2008 12:31:38 +0000 Subject: [PATCH] b=17445 r=tappro,johann - adds proper locking during freeing rq pool and its requests --- lustre/ldlm/ldlm_lib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index a616d69..913429c 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -504,8 +504,11 @@ int client_disconnect_export(struct obd_export *exp) * some connect requests in flight, and his need store a connect flags * in obd_namespace. bug 14260 */ obd->obd_namespace = NULL; - - ptlrpc_free_rq_pool(imp->imp_rq_pool); + + if (imp->imp_rq_pool) { + ptlrpc_free_rq_pool(imp->imp_rq_pool); + imp->imp_rq_pool = NULL; + } class_destroy_import(imp); cli->cl_import = NULL; -- 1.8.3.1