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-14603 ptlrpc: quiet messages for unsupported opcodes
[fs/lustre-release.git]
/
lustre
/
target
/
tgt_handler.c
diff --git
a/lustre/target/tgt_handler.c
b/lustre/target/tgt_handler.c
index
4fff6a6
..
c3213ba
100644
(file)
--- a/
lustre/target/tgt_handler.c
+++ b/
lustre/target/tgt_handler.c
@@
-622,8
+622,14
@@
static struct tgt_handler *tgt_handler_find_check(struct ptlrpc_request *req)
/* opcode was not found in slice */
if (unlikely(s->tos_hs == NULL)) {
/* opcode was not found in slice */
if (unlikely(s->tos_hs == NULL)) {
- CERROR("%s: no handlers for opcode 0x%x\n", tgt_name(tgt),
- opc);
+ static bool printed;
+
+ /* don't spew error messages for unhandled RPCs */
+ if (!printed) {
+ CERROR("%s: no handler for opcode 0x%x from %s\n",
+ tgt_name(tgt), opc, libcfs_id2str(req->rq_peer));
+ printed = true;
+ }
RETURN(ERR_PTR(-ENOTSUPP));
}
RETURN(ERR_PTR(-ENOTSUPP));
}