Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3601016pxt; Tue, 10 Aug 2021 07:15:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwee3ubcCFLJFIi10Vz8Pt7IZiZGGD50ngR6Jmy1QqSv3Jr501z5uAZMto7gw6esWlO40g2 X-Received: by 2002:aa7:d5c8:: with SMTP id d8mr5302494eds.110.1628604936075; Tue, 10 Aug 2021 07:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628604936; cv=none; d=google.com; s=arc-20160816; b=V4LU7BT0spV4p1bDpyJtzHjrUztctyHfmWdsleF4lk6lveEPY0cu8cLlKWczufbrIz uq6lGQfJF5NY9C4DAxj4PaCqIKNyK+z0GBwOhEVaMugM3NXQuaIjcHDLolCYENsSrpp5 vg2pQWg8LfheZwyF8JKxIjqhSsIKHL+Ri2rKCRJAxmfJOy+eowZZ/jCkyrZFYSKNNMdd phJDYTyqXRqTwv4q0C9YuFgd0F0/V1z+/T4v/qfSFwzb0fQ9kOOoA/glrRHboXI9L41p N+5eMmJsGLX6stNLQ+k14VZfCPVlRtDDI7kxiB9By4aQ4491okn5ZPKE2BcisqkuoWGG 1gqw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=9pA854x4+NZnK9VsYLRuDw6BPzTZncgGJA2I5lFQbIk=; b=zsaEzhkSkwSZB1trhcaFiViuzhlN8YwmiFova2txqEj2B7QcweMtl3kWi2r9myDQHe 2Ry0rlmrZVUfMSYC1XHLg04c/e1gWgLM7Kb9YLs1LTsQB86DapWjBNdN6UIH7ocyrhhX rTxdEFB7aTCLDkttQnLl2sQoicjv+qrraXC67t5vzp24b+TzNH+lFPfwzDEAnL6e9qFl sfRDMG+s3g8VuvvBpVHvePS7Er+pauZfju2yAFxqP/cnSt49aU8mcbuZ9IVyHKg00RKP Ao192JV3H1r+Oc9odCXzJlMWxUcdHiB1kf2Py1RA2ALO/S/NUfP6n1RV56eBKfQHWUCn u5Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tDyFqzBx; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd19si6382290ejb.545.2021.08.10.07.14.50; Tue, 10 Aug 2021 07:15:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@suse.de header.s=susede2_rsa header.b=tDyFqzBx; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240735AbhHJMnQ (ORCPT + 99 others); Tue, 10 Aug 2021 08:43:16 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:43674 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240726AbhHJMnP (ORCPT ); Tue, 10 Aug 2021 08:43:15 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 25EDF200AF; Tue, 10 Aug 2021 12:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1628599372; 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=9pA854x4+NZnK9VsYLRuDw6BPzTZncgGJA2I5lFQbIk=; b=tDyFqzBxgDKd2DFbOzjkhY95b2eBQFxhl6ed0Q3kHc9fTqRIY+7Yc77rMJc+qFysb5cc26 SiqhwennuCHDtBgwvYwk05dl4JXM+WCVr2Nukq/b0kl/wBzIkP0jE0SdLSTA/x1dn90lEL dzIE0/yV93B7MGFtEoumAmbo+dhyQUQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1628599372; 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=9pA854x4+NZnK9VsYLRuDw6BPzTZncgGJA2I5lFQbIk=; b=x13LCBSmggHYxOcOCCspJjfUwH5EWVpI4cCxnInx2OgRGivQjopuqxseSxTHXbwhd6ugPy C46AB6MZdmwPtxDg== Received: from adalid.arch.suse.de (adalid.arch.suse.de [10.161.8.13]) by relay2.suse.de (Postfix) with ESMTP id 1862BA3B8E; Tue, 10 Aug 2021 12:42:52 +0000 (UTC) Received: by adalid.arch.suse.de (Postfix, from userid 16045) id 7E75C518C552; Tue, 10 Aug 2021 14:42:50 +0200 (CEST) From: Hannes Reinecke To: Christoph Hellwig Cc: Sagi Grimberg , Keith Busch , Herbert Xu , "David S . Miller" , linux-nvme@lists.infradead.org, linux-crypto@vger.kernel.org, Hannes Reinecke Subject: [PATCH 09/13] nvmet: Parse fabrics commands on all queues Date: Tue, 10 Aug 2021 14:42:26 +0200 Message-Id: <20210810124230.12161-10-hare@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210810124230.12161-1-hare@suse.de> References: <20210810124230.12161-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 --- 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 ac7210a3ea1c..163f7dc1a929 100644 --- a/drivers/nvme/target/core.c +++ b/drivers/nvme/target/core.c @@ -942,6 +942,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