svc.c (b29e2679d0da91c60d3ac190d9c3bd65ac2f68c5) svc.c (e87cc4728f0e2fb663e592a1141742b1d6c63256)
1/*
2 * linux/net/sunrpc/svc.c
3 *
4 * High-level RPC service routines
5 *
6 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
7 *
8 * Multiple threads pools and NUMAisation

--- 1027 unchanged lines hidden (view full) ---

1036 recalc_sigpending();
1037 spin_unlock_irqrestore(&current->sighand->siglock, flags);
1038}
1039
1040/*
1041 * Printk the given error with the address of the client that caused it.
1042 */
1043static __printf(2, 3)
1/*
2 * linux/net/sunrpc/svc.c
3 *
4 * High-level RPC service routines
5 *
6 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
7 *
8 * Multiple threads pools and NUMAisation

--- 1027 unchanged lines hidden (view full) ---

1036 recalc_sigpending();
1037 spin_unlock_irqrestore(&current->sighand->siglock, flags);
1038}
1039
1040/*
1041 * Printk the given error with the address of the client that caused it.
1042 */
1043static __printf(2, 3)
1044int svc_printk(struct svc_rqst *rqstp, const char *fmt, ...)
1044void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...)
1045{
1045{
1046 struct va_format vaf;
1046 va_list args;
1047 va_list args;
1047 int r;
1048 char buf[RPC_MAX_ADDRBUFLEN];
1049
1048 char buf[RPC_MAX_ADDRBUFLEN];
1049
1050 if (!net_ratelimit())
1051 return 0;
1050 va_start(args, fmt);
1052
1051
1053 printk(KERN_WARNING "svc: %s: ",
1054 svc_print_addr(rqstp, buf, sizeof(buf)));
1052 vaf.fmt = fmt;
1053 vaf.va = &args;
1055
1054
1056 va_start(args, fmt);
1057 r = vprintk(fmt, args);
1058 va_end(args);
1055 net_warn_ratelimited("svc: %s: %pV",
1056 svc_print_addr(rqstp, buf, sizeof(buf)), &vaf);
1059
1057
1060 return r;
1058 va_end(args);
1061}
1062
1063/*
1064 * Common routine for processing the RPC request.
1065 */
1066static int
1067svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
1068{

--- 332 unchanged lines hidden ---
1059}
1060
1061/*
1062 * Common routine for processing the RPC request.
1063 */
1064static int
1065svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
1066{

--- 332 unchanged lines hidden ---