Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp222457pxj; Thu, 20 May 2021 08:01:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5bjT9ctj/2klcVg5OEQPOYx/3XoCHHXZURxaqoHXVUDA+wvArrqdbDx/Xfji+ZwmQLGkm X-Received: by 2002:a92:d6c2:: with SMTP id z2mr6397864ilp.246.1621522917214; Thu, 20 May 2021 08:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621522917; cv=none; d=google.com; s=arc-20160816; b=jq47r8Uq0gdtHPhQENPCO1nb3jKQ8wbdXKnj65U5Ynn/uduepUMcxUXguUVhVigamn t3Nxqual5rPiiQh28WCJ4pim6HEhIgVbtW0dGIGP3X8kASdDTweGiFh2JXhWEIvMj6Zl rFuS6IfHJ1hXe91izU4vs9hqkAedm6euIpSq6X0LRpj19sVUhauGmsf0/Vg/TbOAiPF2 vCesW8M0RDm1zuzSaqSeRtOMS5imPUZ2v8cVsQQjjbDo9jyViATbzfllbrVM+5JSlGsA ULfnTamWkI4X+3JjCl9u80cLODQWLBorjcrUEYD7N63+OST2ReqTdp/SpjX4kMIevZ8A v0LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mZVbUzTOV62eMsJXX008jIL0ueLzAtv7RVZ5tlD01us=; b=sxjY6AgyI0J2V7ndruwq/W/bqXlf29RcaSIX2j9pO2+5tO0mDvz5Etvsrw4Nz8IeEq Zu4bH6v0whnaMRwO/YSoqEbHNfLmul3cCwkfphWR0YNADVn0+gdE7haPGj4aam2dnyGC 492V0Qsede9s76oyZTWgCE5xlwh/pDVwVnrstF1QAVnCp/tpzeROnCNScs89P3DZSRdS d+dwcMiR3nZueOZxAKMT3dlMzacrk+9f2uavAeEtD9gd6xLY7KSkVuEej+2NbYUG1XH/ 0ixjLHuGyPKujrJ0d1kS1AcjY3Cd7QBU8IPvkFcxliq2zJb0SnZOz1G5EgqKHlnF1aD7 VlAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0EsY1PR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si2789306iom.3.2021.05.20.08.01.38; Thu, 20 May 2021 08:01:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0EsY1PR5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231586AbhETJ2o (ORCPT + 99 others); Thu, 20 May 2021 05:28:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:54768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232000AbhETJ1i (ORCPT ); Thu, 20 May 2021 05:27:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0031C613BA; Thu, 20 May 2021 09:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621502775; bh=Nhw5gNW3YGlemcQ7Zi4VxPT9o9rVDtyWW2ojtIrZ/FA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0EsY1PR5Wjaho0AoleS2X8WpVxKAFMvRuC4bcquOsDjxrF3lUXNxfNfYnuJEj7GM0 0cCjOGZbLFSoAntdg0N0QexiYG/2NCdTCVAgFqmTUs730fmc5BpzzBmVln/O0Tgl3+ PtZHG0D1p751M4CUetSCvexBahjiY3F1k292skhI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yi Zhang , Keith Busch , Klaus Jensen , Chaitanya Kulkarni , Christoph Hellwig , Sasha Levin Subject: [PATCH 5.12 34/45] nvmet: remove unsupported command noise Date: Thu, 20 May 2021 11:22:22 +0200 Message-Id: <20210520092054.627852380@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092053.516042993@linuxfoundation.org> References: <20210520092053.516042993@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Keith Busch [ Upstream commit 4a20342572f66c5b20a1ee680f5ac0a13703748f ] Nothing can stop a host from submitting invalid commands. The target just needs to respond with an appropriate status, but that's not a target error. Demote invalid command messages to the debug level so these events don't spam the kernel logs. Reported-by: Yi Zhang Signed-off-by: Keith Busch Reviewed-by: Klaus Jensen Reviewed-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/target/admin-cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c index 81224447605b..5a1ab49908c3 100644 --- a/drivers/nvme/target/admin-cmd.c +++ b/drivers/nvme/target/admin-cmd.c @@ -307,7 +307,7 @@ static void nvmet_execute_get_log_page(struct nvmet_req *req) case NVME_LOG_ANA: return nvmet_execute_get_log_page_ana(req); } - pr_err("unhandled lid %d on qid %d\n", + pr_debug("unhandled lid %d on qid %d\n", req->cmd->get_log_page.lid, req->sq->qid); req->error_loc = offsetof(struct nvme_get_log_page_command, lid); nvmet_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR); @@ -659,7 +659,7 @@ static void nvmet_execute_identify(struct nvmet_req *req) return nvmet_execute_identify_desclist(req); } - pr_err("unhandled identify cns %d on qid %d\n", + pr_debug("unhandled identify cns %d on qid %d\n", req->cmd->identify.cns, req->sq->qid); req->error_loc = offsetof(struct nvme_identify, cns); nvmet_req_complete(req, NVME_SC_INVALID_FIELD | NVME_SC_DNR); @@ -977,7 +977,7 @@ u16 nvmet_parse_admin_cmd(struct nvmet_req *req) return 0; } - pr_err("unhandled cmd %d on qid %d\n", cmd->common.opcode, + pr_debug("unhandled cmd %d on qid %d\n", cmd->common.opcode, req->sq->qid); req->error_loc = offsetof(struct nvme_common_command, opcode); return NVME_SC_INVALID_OPCODE | NVME_SC_DNR; -- 2.30.2