Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-56 ptlrpc: clean up ptlrpc svc initializing APIs
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
lproc_ptlrpc.c
diff --git
a/lustre/ptlrpc/lproc_ptlrpc.c
b/lustre/ptlrpc/lproc_ptlrpc.c
index
ac436b5
..
5e29563
100644
(file)
--- a/
lustre/ptlrpc/lproc_ptlrpc.c
+++ b/
lustre/ptlrpc/lproc_ptlrpc.c
@@
-471,7
+471,7
@@
ptlrpc_lprocfs_svc_req_history_next(struct seq_file *s,
return srhi;
}
return srhi;
}
-/* common ost/mdt s
rv_req_printfn
*/
+/* common ost/mdt s
o_req_printer
*/
void target_print_req(void *seq_file, struct ptlrpc_request *req)
{
/* Called holding srv_lock with irqs disabled.
void target_print_req(void *seq_file, struct ptlrpc_request *req)
{
/* Called holding srv_lock with irqs disabled.
@@
-528,10
+528,10
@@
static int ptlrpc_lprocfs_svc_req_history_show(struct seq_file *s, void *iter)
req->rq_arrival_time.tv_sec,
req->rq_sent - req->rq_arrival_time.tv_sec,
req->rq_sent - req->rq_deadline);
req->rq_arrival_time.tv_sec,
req->rq_sent - req->rq_arrival_time.tv_sec,
req->rq_sent - req->rq_deadline);
-
if (svc->srv_req_printfn
== NULL)
-
seq_printf(s, "\n");
-
else
-
svc->srv_req_printfn
(s, srhi->srhi_req);
+
if (svc->srv_ops.so_req_printer
== NULL)
+ seq_printf(s, "\n");
+ else
+
svc->srv_ops.so_req_printer
(s, srhi->srhi_req);
}
cfs_spin_unlock(&svc->srv_lock);
}
cfs_spin_unlock(&svc->srv_lock);