Whamcloud - gitweb
branch: HEAD
authorericm <ericm>
Thu, 3 Jul 2008 19:53:12 +0000 (19:53 +0000)
committerericm <ericm>
Thu, 3 Jul 2008 19:53:12 +0000 (19:53 +0000)
add debug lines for keyring.

lustre/ptlrpc/gss/gss_keyring.c

index 5ea2f62..f2014e5 100644 (file)
@@ -733,6 +733,8 @@ struct ptlrpc_cli_ctx * gss_sec_lookup_ctx_kr(struct ptlrpc_sec *sec,
                  co_flags, import_to_gss_svc(imp),
                  imp->imp_connection->c_peer.nid, imp->imp_obd->obd_name);
 
+        CDEBUG(D_SEC, "requesting key for %s", desc);
+
         keyring_upcall_lock(gsec_kr);
         key = request_key(&gss_key_type, desc, coinfo);
         keyring_upcall_unlock(gsec_kr);
@@ -743,6 +745,7 @@ struct ptlrpc_cli_ctx * gss_sec_lookup_ctx_kr(struct ptlrpc_sec *sec,
                 CERROR("failed request key: %ld\n", PTR_ERR(key));
                 goto out;
         }
+        CDEBUG(D_SEC, "obtained key %08x for %s", key->serial, desc);
 
         /* once payload.data was pointed to a ctx, it never changes until
          * we de-associate them; but parallel request_key() may return