From f9439a945859f161558010e1bd537a3d2dd94ed5 Mon Sep 17 00:00:00 2001 From: ericm Date: Thu, 9 Nov 2006 03:22:54 +0000 Subject: [PATCH] branch: b_new_cmd debug on mountain. --- lustre/ptlrpc/gss/sec_gss.c | 4 ++++ lustre/ptlrpc/sec.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/ptlrpc/gss/sec_gss.c b/lustre/ptlrpc/gss/sec_gss.c index 5d4cd4b..d1b240f 100644 --- a/lustre/ptlrpc/gss/sec_gss.c +++ b/lustre/ptlrpc/gss/sec_gss.c @@ -81,6 +81,7 @@ static struct ptlrpc_cli_ctx * gss_sec_create_ctx(struct ptlrpc_sec *sec, struct vfs_cred *vcred); static void gss_sec_destroy_ctx(struct ptlrpc_sec *sec, struct ptlrpc_cli_ctx *ctx); +static __gss_mod_initialized = 0; /******************************************** * wire data swabber * ********************************************/ @@ -2148,6 +2149,8 @@ int gss_svc_accept(struct ptlrpc_request *req) int rc; ENTRY; + LASSERTF((__gss_mod_initialized == 1), + "not initialized %d\n", __gss_mod_initialized); LASSERT(req->rq_reqbuf); LASSERT(req->rq_svc_ctx == NULL); @@ -2571,6 +2574,7 @@ int __init sptlrpc_gss_init(void) if (rc) goto out_upcall; + __gss_mod_initialized = 1; return 0; out_upcall: gss_exit_upcall(); diff --git a/lustre/ptlrpc/sec.c b/lustre/ptlrpc/sec.c index d57144f..1d964af 100644 --- a/lustre/ptlrpc/sec.c +++ b/lustre/ptlrpc/sec.c @@ -131,7 +131,7 @@ again: if (request_module("ptlrpc_gss") != 0) CERROR("Unable to load module ptlrpc_gss\n"); else - CDEBUG(D_INFO, "module ptlrpc_gss loaded\n"); + CWARN("module ptlrpc_gss loaded\n"); atomic_set(&loaded, 1); } -- 1.8.3.1