X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftarget%2Ftgt_handler.c;h=c3213bae8727c251ef754efb7d7ffd7c64fe67d5;hp=4fff6a6dc2c7dcb9b1eb1e89a5f76174535fb64f;hb=a23767580aebfab7f093df562ac7598e85b71b3e;hpb=eaae1eab675c4cc6f93befc5cf9f531ed1ca24cc;ds=sidebyside diff --git a/lustre/target/tgt_handler.c b/lustre/target/tgt_handler.c index 4fff6a6..c3213ba 100644 --- 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)) { - 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)); }