Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp607292ybl; Fri, 23 Aug 2019 05:53:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqytjwqFlbHinEwzXMTVzO82U/9nNABnOU80KLT0ccixqdfDruzQlB2U4MnbAXieLh60cWcF X-Received: by 2002:a17:90a:244a:: with SMTP id h68mr5220152pje.100.1566564813288; Fri, 23 Aug 2019 05:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566564813; cv=none; d=google.com; s=arc-20160816; b=VvhRwu8MsiW0fEKFXrg9C7xsge7d4c7LqOQnH9Z1FVEyI2Qcb8dbPNR95KXgeg/ejM lKjaXRRu/tnfDQhhGsnwdvuSvkvg0wJV8mbgoK1BYBQ3kl+b3KGG7zY5N9sm4yfVYr46 sJi10gCkLnENzy0oYm6wr33tGLhoUzm9XllDfFCOir1ZQwQLvX5Kc3QOlVhovDHsOcvY D68U+c9gB0K0LJFu2ZMJwLtUi2ZLTqYmEk3+8TpRLm9gZp57doT8z28F8SRKXnfJ/7V2 VuMMJUsuRDPRpAT8sWrNgjTS1TpCdmtAUobPnYC9Ze/CrAiCopNT7jbT97/pD9Eb2ewC nRVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=xQ5O0RsS+ZtPvziuVts9c0L7esxcZ77+ZS7R3UUzWhw=; b=pgKrjPeCxd747v5muYzclZXVFh1ccAvfkhGwQ+lk8KREshNxFeJchPSeoqaJaf44e/ WO4s2lcJy8xaU+WD/rBRSyBmdwElmwcJP3terDhTBsdqgPLQ7enI8GdUU4E0zXEbSuKd AsPPIaPIgCBRtvVt/K0+InaohQ23zfc51BSRZ64/MS/gyo/h4Eh8KTBykYvksBTDNq7d 0yxojbXKKAJXHhHeMh++s0zz/bF82YZlU9IXiPGe7n0QoaxgNfpJZAGStB91s0mbdR4s KMu6XYP8/ASfo5ZHZ14CSdUqk9Btu1x581NDCO0siHuJY3WXWaJUI9nZcj9MuCnZy2bB NZ0Q== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z189si741768pgb.491.2019.08.23.05.53.17; Fri, 23 Aug 2019 05:53:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392049AbfHVTlr (ORCPT + 99 others); Thu, 22 Aug 2019 15:41:47 -0400 Received: from ale.deltatee.com ([207.54.116.67]:50158 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731942AbfHVTlr (ORCPT ); Thu, 22 Aug 2019 15:41:47 -0400 Received: from s0106ac1f6bb1ecac.cg.shawcable.net ([70.73.163.230] helo=[192.168.11.155]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i0sxm-0002GA-Tu; Thu, 22 Aug 2019 13:41:39 -0600 To: Sagi Grimberg , Max Gurtovoy , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: Chaitanya Kulkarni , Stephen Bates , Jens Axboe , Keith Busch , Christoph Hellwig References: <20190801234514.7941-1-logang@deltatee.com> <20190801234514.7941-9-logang@deltatee.com> <05a74e81-1dbd-725f-1369-5ca5c5918db1@mellanox.com> <5717f515-e051-c420-07b7-299bcfcd1f32@mellanox.com> <24e2ddd0-4b2a-8092-cf91-df8c0fb482e5@grimberg.me> From: Logan Gunthorpe Message-ID: <5e53b732-5c33-c331-0c77-d52d5075306a@deltatee.com> Date: Thu, 22 Aug 2019 13:41:32 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 70.73.163.230 X-SA-Exim-Rcpt-To: hch@lst.de, kbusch@kernel.org, axboe@fb.com, sbates@raithlin.com, Chaitanya.Kulkarni@wdc.com, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, maxg@mellanox.com, sagi@grimberg.me X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH v7 08/14] nvmet-core: allow one host per passthru-ctrl X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-08-22 1:17 p.m., Sagi Grimberg wrote: > >>>>> I don't understand why we don't limit a regular ctrl to single >>>>> access and we do it for the PT ctrl. >>>>> >>>>> I guess the block layer helps to sync between multiple access in >>>>> parallel but we can do it as well. >>>>> >>>>> Also, let's say you limit the access to this subsystem to 1 user, >>>>> the bdev is still accessibly for local user and also you can create >>>>> a different subsystem that will use this device (PT and non-PT ctrl). >>>>> >>>>> Sagi, >>>>> >>>>> can you explain the trouble you meant and how this limitation solve >>>>> it ? >>>> >>>> Its different to emulate the controller with all its admin >>>> commands vs. passing it through to the nvme device.. (think of >>>> format nvm) >>>> >>>> >>>> >>> we don't need to support format command for PT ctrl as we don't >>> support other commands such create_sq/cq. >> >> That is just an example, basically every command that we are not aware >> of we simply passthru to the drive without knowing the implications >> on a multi-host environment.. > > If we were to change the logic of nvmet_parse_passthru_admin_cmd to > have the default case do nvmet_parse_admin_cmd, and only have > the vendor-specific space opcodes do nvmet_passthru_execute_cmd > then I could not see at the moment how we can break a multi-host > export... That makes sense. I'll make that change and resend a v8 next week. Logan