17
17
#include <linux/sunrpc/gss_api.h>
18
18
#include <linux/spinlock.h>
19
19
20
- #if IS_ENABLED (CONFIG_SUNRPC_DEBUG )
21
- # define RPCDBG_FACILITY RPCDBG_AUTH
22
- #endif
23
-
24
20
#define RPC_CREDCACHE_DEFAULT_HASHBITS (4)
25
21
struct rpc_cred_cache {
26
22
struct hlist_head * hashtable ;
@@ -267,8 +263,6 @@ rpcauth_list_flavors(rpc_authflavor_t *array, int size)
267
263
}
268
264
}
269
265
rcu_read_unlock ();
270
-
271
- dprintk ("RPC: %s returns %d\n" , __func__ , result );
272
266
return result ;
273
267
}
274
268
EXPORT_SYMBOL_GPL (rpcauth_list_flavors );
@@ -636,9 +630,6 @@ rpcauth_lookupcred(struct rpc_auth *auth, int flags)
636
630
struct rpc_cred * ret ;
637
631
const struct cred * cred = current_cred ();
638
632
639
- dprintk ("RPC: looking up %s cred\n" ,
640
- auth -> au_ops -> au_name );
641
-
642
633
memset (& acred , 0 , sizeof (acred ));
643
634
acred .cred = cred ;
644
635
ret = auth -> au_ops -> lookup_cred (auth , & acred , flags );
@@ -670,8 +661,6 @@ rpcauth_bind_root_cred(struct rpc_task *task, int lookupflags)
670
661
};
671
662
struct rpc_cred * ret ;
672
663
673
- dprintk ("RPC: %5u looking up %s cred\n" ,
674
- task -> tk_pid , task -> tk_client -> cl_auth -> au_ops -> au_name );
675
664
ret = auth -> au_ops -> lookup_cred (auth , & acred , lookupflags );
676
665
put_cred (acred .cred );
677
666
return ret ;
@@ -688,8 +677,6 @@ rpcauth_bind_machine_cred(struct rpc_task *task, int lookupflags)
688
677
689
678
if (!acred .principal )
690
679
return NULL ;
691
- dprintk ("RPC: %5u looking up %s machine cred\n" ,
692
- task -> tk_pid , task -> tk_client -> cl_auth -> au_ops -> au_name );
693
680
return auth -> au_ops -> lookup_cred (auth , & acred , lookupflags );
694
681
}
695
682
@@ -698,8 +685,6 @@ rpcauth_bind_new_cred(struct rpc_task *task, int lookupflags)
698
685
{
699
686
struct rpc_auth * auth = task -> tk_client -> cl_auth ;
700
687
701
- dprintk ("RPC: %5u looking up %s cred\n" ,
702
- task -> tk_pid , auth -> au_ops -> au_name );
703
688
return rpcauth_lookupcred (auth , lookupflags );
704
689
}
705
690
@@ -776,9 +761,6 @@ rpcauth_marshcred(struct rpc_task *task, __be32 *p)
776
761
{
777
762
struct rpc_cred * cred = task -> tk_rqstp -> rq_cred ;
778
763
779
- dprintk ("RPC: %5u marshaling %s cred %p\n" ,
780
- task -> tk_pid , cred -> cr_auth -> au_ops -> au_name , cred );
781
-
782
764
return cred -> cr_ops -> crmarshal (task , p );
783
765
}
784
766
@@ -787,9 +769,6 @@ rpcauth_checkverf(struct rpc_task *task, __be32 *p)
787
769
{
788
770
struct rpc_cred * cred = task -> tk_rqstp -> rq_cred ;
789
771
790
- dprintk ("RPC: %5u validating %s cred %p\n" ,
791
- task -> tk_pid , cred -> cr_auth -> au_ops -> au_name , cred );
792
-
793
772
return cred -> cr_ops -> crvalidate (task , p );
794
773
}
795
774
@@ -808,8 +787,6 @@ rpcauth_wrap_req(struct rpc_task *task, kxdreproc_t encode, void *rqstp,
808
787
{
809
788
struct rpc_cred * cred = task -> tk_rqstp -> rq_cred ;
810
789
811
- dprintk ("RPC: %5u using %s cred %p to wrap rpc data\n" ,
812
- task -> tk_pid , cred -> cr_ops -> cr_name , cred );
813
790
if (cred -> cr_ops -> crwrap_req )
814
791
return cred -> cr_ops -> crwrap_req (task , encode , rqstp , data , obj );
815
792
/* By default, we encode the arguments normally. */
@@ -833,8 +810,6 @@ rpcauth_unwrap_resp(struct rpc_task *task, kxdrdproc_t decode, void *rqstp,
833
810
{
834
811
struct rpc_cred * cred = task -> tk_rqstp -> rq_cred ;
835
812
836
- dprintk ("RPC: %5u using %s cred %p to unwrap rpc data\n" ,
837
- task -> tk_pid , cred -> cr_ops -> cr_name , cred );
838
813
if (cred -> cr_ops -> crunwrap_resp )
839
814
return cred -> cr_ops -> crunwrap_resp (task , decode , rqstp ,
840
815
data , obj );
@@ -865,8 +840,6 @@ rpcauth_refreshcred(struct rpc_task *task)
865
840
goto out ;
866
841
cred = task -> tk_rqstp -> rq_cred ;
867
842
}
868
- dprintk ("RPC: %5u refreshing %s cred %p\n" ,
869
- task -> tk_pid , cred -> cr_auth -> au_ops -> au_name , cred );
870
843
871
844
err = cred -> cr_ops -> crrefresh (task );
872
845
out :
@@ -880,8 +853,6 @@ rpcauth_invalcred(struct rpc_task *task)
880
853
{
881
854
struct rpc_cred * cred = task -> tk_rqstp -> rq_cred ;
882
855
883
- dprintk ("RPC: %5u invalidating %s cred %p\n" ,
884
- task -> tk_pid , cred -> cr_auth -> au_ops -> au_name , cred );
885
856
if (cred )
886
857
clear_bit (RPCAUTH_CRED_UPTODATE , & cred -> cr_flags );
887
858
}
0 commit comments