Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4642C43219 for ; Tue, 23 Nov 2021 12:38:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236928AbhKWMl0 (ORCPT ); Tue, 23 Nov 2021 07:41:26 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:38886 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236620AbhKWMlX (ORCPT ); Tue, 23 Nov 2021 07:41:23 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 3D5421FD5E; Tue, 23 Nov 2021 12:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1637671094; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vesnEftm40bgE0Mlb2KauB4xABlzfSQSQnBa7DVdpmU=; b=wUFJOasYmYml6wzSbye5IiUFB5nv/i1OSkkzkti44knpp1CP4wrucKXzBqGaepZ88wI7wB p6gNVFo5FPSEC5YEc90NhCoqkWy/XNwQX889/0MnufBEGmOeQp+V4wv1qGl8IZt8bVoj4x gwIzXD0BVhrf9hM4BT6PGGbGPCh8oWM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1637671094; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vesnEftm40bgE0Mlb2KauB4xABlzfSQSQnBa7DVdpmU=; b=jeuF4otAon5ARYNUros0UHKNg2pA3VwGC4jqaap+conkEowY2qD0jRIlGEs+m03J6J0Ffc 6fO/j1rWYF23+0Bw== Received: from adalid.arch.suse.de (adalid.arch.suse.de [10.161.8.13]) by relay2.suse.de (Postfix) with ESMTP id 2C7A2A3B8F; Tue, 23 Nov 2021 12:38:14 +0000 (UTC) Received: by adalid.arch.suse.de (Postfix, from userid 16045) id C2BF251918CC; Tue, 23 Nov 2021 13:38:12 +0100 (CET) From: Hannes Reinecke To: Sagi Grimberg Cc: Christoph Hellwig , Keith Busch , linux-nvme@lists.infradead.org, Herbert Xu , David Miller , linux-crypto@vger.kernel.org, Hannes Reinecke , Himanshu Madhani Subject: [PATCH 09/12] nvmet: Parse fabrics commands on all queues Date: Tue, 23 Nov 2021 13:37:58 +0100 Message-Id: <20211123123801.73197-10-hare@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211123123801.73197-1-hare@suse.de> References: <20211123123801.73197-1-hare@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fabrics commands might be sent to all queues, not just the admin one. Signed-off-by: Hannes Reinecke Reviewed-by: Sagi Grimberg Reviewed-by: Himanshu Madhani --- drivers/nvme/target/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c index 5119c687de68..a3abbf50f7e0 100644 --- a/drivers/nvme/target/core.c +++ b/drivers/nvme/target/core.c @@ -943,6 +943,8 @@ bool nvmet_req_init(struct nvmet_req *req, struct nvmet_cq *cq, if (unlikely(!req->sq->ctrl)) /* will return an error for any non-connect command: */ status = nvmet_parse_connect_cmd(req); + else if (nvme_is_fabrics(req->cmd)) + status = nvmet_parse_fabrics_cmd(req); else if (likely(req->sq->qid != 0)) status = nvmet_parse_io_cmd(req); else -- 2.29.2