Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2184099ybl; Thu, 15 Aug 2019 07:51:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVUVPhvBUXjgGiCIRDImN+DqxuBFk6vPKaeTmQyzr+EmAdyYtFsOW5Eu6HhBnmwFuMl0/y X-Received: by 2002:a65:4509:: with SMTP id n9mr3759180pgq.133.1565880686068; Thu, 15 Aug 2019 07:51:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565880686; cv=pass; d=google.com; s=arc-20160816; b=QbZ3fZleacHQ5dfmmL2MOTLvELe+R6Kw2z6B7Ar6dlhOGfUIOaVN/0bwPmER+BfyUK 0h+ZEplCwJRinCNrLrlpN3rcOyZpMAXDgceiMHjRRQodemfBl11QTQogdedmeqzfXipR vfiIWFRa5zRmOERCzOz6EnOIHK7UH++Wa/Lso6vAmIAY4rGU5UvroEWy/lVTGr2RKV0o eJegTXsgSqkV55+aXLAhqDilmvRZXtzK6al5/zAAo6lEEodk9YmyYShgCrygVR/95waX LUnrC/jvrubC3bZTusNt4PS3jrsjIvd9kaiS+r9pRvKbBy1AI5gQL4OI/5B1zF1znBIi lE2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=0AgDzAUr85P7roIVwRFfMh4yy0wPWvocZoiukW+xLKw=; b=aolk3ztHJ6nA8WDplUHv1b5NBb5O/DZkjzkRWmo7VAuBxeoMTjUmGRxCYaosKLUjoR g8WHzr4sZgwPcTneuXDoG5REXC5n9PMvKOmc31PTci/VaHKkQQWCN0cdkobj6FT1lTDr xkp5bRoVpuXHDvJfbsyO4wwwCADsEOrNaqzHElTMOYQG7PEnUFV2gV/74wievx47sevO 3n1U357IPahkYRlD9wR/TJlqq5txjHui8xsEMNyCkw5g4FAn5dJ59JSIlgSIKl+DENUW ps+t94FVWp3l6LUtmatw+UuEKDncq5yJEMjK09pzdTwu+0JlSmO9jchKU0+dn+QnUzEW lZUg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=XuWk+cQl; arc=pass (i=1 spf=pass spfdomain=mellanox.com dmarc=pass fromdomain=mellanox.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19si1936240pgg.521.2019.08.15.07.51.09; Thu, 15 Aug 2019 07:51:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector2 header.b=XuWk+cQl; arc=pass (i=1 spf=pass spfdomain=mellanox.com dmarc=pass fromdomain=mellanox.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731855AbfHOMgT (ORCPT + 99 others); Thu, 15 Aug 2019 08:36:19 -0400 Received: from mail-eopbgr40062.outbound.protection.outlook.com ([40.107.4.62]:45734 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725977AbfHOMgT (ORCPT ); Thu, 15 Aug 2019 08:36:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/c+1DhHbo8drkxxnx0xZedcez1djWUWd5EmN+UwvPOwjT8f9llfNEWaohro673WpYTICKekNF2jxEvUn+aETxx7DNf/hlP4QW/VZqWNGcL9tjDRWgNMlCEGeZcI0Cwc6HjI+gzr/xaRbP53L2mlJkYBwbxTJ7r7w/Gnv8pERDsbMcWsv+5twxyo4sTiUjKAU5Dqdt9Xda4N8s3hZCYv6jJu0DyKQV38pAN0tdfSs6h47BAChvrDhPXCxfpMaokP/Zc49CQGapJApGMHPhUiOzXBuyTzoutFd+Flfc+ZMeSp210U1PxfHDVVM8ZkkWoCYoPYh9VLZdOrm0zhCvdDkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0AgDzAUr85P7roIVwRFfMh4yy0wPWvocZoiukW+xLKw=; b=a07Cy14gBEqpx79rNcYQqsKV57TEUhreZZ5YR98vzYK3LxDygxoRwSZJouXh4bnM0ICiRckYD0WGs+/r/vHK9jhgjdstT01eFmPxgnkMo1NY7TkQDJuE9Dxcg0s2Cg875tjh6IYaBIa84YvJx+bi7tS7jeU7It0BTAeGqQdSLu25HJq1MKGZGF7plVHkH47WLtvGu1/KgLscYIB3ptdjIdOLWL+AKZxO46l8ypAuc8aA1mVvuYMuNCPA8s7ydyTMjMTkULkmi/CzPfjrACxRVYQqstob/4RE/7D/4eNSikTo8SliU8DgwwvhoupYAoEznv9CRuh+pRlJxJdGBqpsAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.47.165.251) smtp.rcpttodomain=raithlin.com smtp.mailfrom=mellanox.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=mellanox.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0AgDzAUr85P7roIVwRFfMh4yy0wPWvocZoiukW+xLKw=; b=XuWk+cQl19f0Lu7oUNuJE1tMv1hAJSiSDdgs29LS+kmEcpKXVxnIxsWRJeHGNFJYsqLwFcVL5e12SNcNJzyw4XOAzmNEj7nxwzDB16bjyLmYVF4S2pvhBITfYCGOkKEuIi7dTx57GCWzzx7mhIkdRO8Jd1b1FxtB2eqn/OJ1ukc= Received: from HE1PR05CA0134.eurprd05.prod.outlook.com (10.170.249.149) by VI1PR0502MB3072.eurprd05.prod.outlook.com (10.175.26.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Thu, 15 Aug 2019 12:36:14 +0000 Received: from AM5EUR03FT004.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::208) by HE1PR05CA0134.outlook.office365.com (2603:10a6:7:28::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2157.16 via Frontend Transport; Thu, 15 Aug 2019 12:36:13 +0000 Authentication-Results: spf=pass (sender IP is 193.47.165.251) smtp.mailfrom=mellanox.com; raithlin.com; dkim=none (message not signed) header.d=none;raithlin.com; dmarc=pass action=none header.from=mellanox.com; Received-SPF: Pass (protection.outlook.com: domain of mellanox.com designates 193.47.165.251 as permitted sender) receiver=protection.outlook.com; client-ip=193.47.165.251; helo=mtlcas13.mtl.com; Received: from mtlcas13.mtl.com (193.47.165.251) by AM5EUR03FT004.mail.protection.outlook.com (10.152.16.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2178.16 via Frontend Transport; Thu, 15 Aug 2019 12:36:12 +0000 Received: from MTLCAS13.mtl.com (10.0.8.78) by mtlcas13.mtl.com (10.0.8.78) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 15 Aug 2019 15:36:12 +0300 Received: from MTLCAS01.mtl.com (10.0.8.71) by MTLCAS13.mtl.com (10.0.8.78) with Microsoft SMTP Server (TLS) id 15.0.1178.4 via Frontend Transport; Thu, 15 Aug 2019 15:36:12 +0300 Received: from [10.223.0.54] (10.223.0.54) by MTLCAS01.mtl.com (10.0.8.71) with Microsoft SMTP Server (TLS) id 14.3.301.0; Thu, 15 Aug 2019 15:36:10 +0300 Subject: Re: [PATCH v7 08/14] nvmet-core: allow one host per passthru-ctrl To: Logan Gunthorpe , , , , CC: Christoph Hellwig , Sagi Grimberg , "Keith Busch" , Jens Axboe , Chaitanya Kulkarni , Stephen Bates References: <20190801234514.7941-1-logang@deltatee.com> <20190801234514.7941-9-logang@deltatee.com> From: Max Gurtovoy Message-ID: <05a74e81-1dbd-725f-1369-5ca5c5918db1@mellanox.com> Date: Thu, 15 Aug 2019 15:36:02 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190801234514.7941-9-logang@deltatee.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.223.0.54] X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:193.47.165.251;IPV:NLI;CTRY:IL;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(136003)(346002)(376002)(396003)(39860400002)(2980300002)(189003)(199004)(230700001)(2201001)(36756003)(5660300002)(86362001)(2906002)(31696002)(3846002)(6116002)(7736002)(7416002)(305945005)(65826007)(2616005)(476003)(126002)(486006)(26005)(186003)(16526019)(11346002)(229853002)(446003)(70206006)(70586007)(4744005)(53546011)(336012)(4326008)(2486003)(6246003)(76176011)(53936002)(50466002)(316002)(478600001)(36906005)(8936002)(16576012)(356004)(23676004)(6666004)(58126008)(110136005)(54906003)(106002)(31686004)(47776003)(65956001)(65806001)(8676002)(81156014)(81166006)(64126003)(3940600001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0502MB3072;H:mtlcas13.mtl.com;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49d5e323-ad65-4e91-7fc6-08d7217d289c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328)(7193020);SRVR:VI1PR0502MB3072; X-MS-TrafficTypeDiagnostic: VI1PR0502MB3072: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-Forefront-PRVS: 01304918F3 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: JJKQusnZ9YbpiydBdlLayxL8/OBxfUt87G2tfK/wgm74SF0HT1vO90/c7U7QEMfJWnq/RSgf2YZQ1iLMGymg66bARHJIW5XGujbMuXhEe3K/a8ciuYbj+bRiHjwWaELLL4qvjtJgEjV+ZxgR8a54yM/KOH3kP2N5X0zG48d6E8ho/HNtHEjMHUVayV8kcm1Ad87oOysUgn0lniZ5aXk9Ll0iB88QMD86wZxwTCqBUbuAJsGXWZ5rXzkiyxKkERtUWjjd0wi87KenrdUUZA6nyEk9lng6/oMs/rozhDriy2X4C7gCBuzU/7Vt5ZigcVYW0T7gCl/8v//fFx+aCPXM41OF5BAV39CQsPT2vjbbfCNJ/HrouwnwQturDWQxKFtZ88z8KNhVcHYVZNwclHeM5B9MAOSn196Zulio91KTplQ= X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2019 12:36:12.8585 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49d5e323-ad65-4e91-7fc6-08d7217d289c X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b;Ip=[193.47.165.251];Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3072 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/2/2019 2:45 AM, Logan Gunthorpe wrote: > This patch rejects any new connection to the passthru-ctrl if this > controller is already connected to a different host. At the time of > allocating the controller we check if the subsys associated with > the passthru ctrl is already connected to a host and reject it > if the hostnqn differs. This is a big limitation. Are we plan to enable many front-end ctrl's to connect to the single back-end ctrl in the future ? I guess it can be incremental to this series.