Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1539163ybg; Thu, 11 Jun 2020 12:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfTN3oC4nLkGWqSsAEwG/DMafSxME2Q5Wi3dCVz+yxs2lEbD98h3P1TqWmC6VmERPZIjtr X-Received: by 2002:a17:906:63c9:: with SMTP id u9mr10165267ejk.487.1591903612252; Thu, 11 Jun 2020 12:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591903612; cv=none; d=google.com; s=arc-20160816; b=wB4g/iJqEdO9DAq5tHfhmdVLRDbIPLxcZnMcE4A8SvQ+LeQLtI1ktsM5xFzDNJ5ZrY WdNw9wmpFH45tVRVpf3JyMSLSXjuL+4VX/UQV4BIVLNYqOoN6Cn5nFenrbtn/1Iz1x8D YlD6aVZL9HEpepcPpbw6E/hdOV7mqXipwbiEzH1v0k7ah2Qcj3fGmyDhnOh6rkXVCF4H 8UTR7MJX6X0W3RvRorZyPIuav+h01RDtZRsR7UyjPFSeBYsjroqbmGzi4VMYffbhb1eo KwRgiIubsL11JbljzukuBIAFIfqhoIYBQSHIDRJqTHxzTGuaL3AcQz2Qks1IayHUSYdp 6xdw== 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:dkim-signature; bh=Iul3mhrear09phmCu8JOZ2yhnz8/T9YMeSEnL8Miao0=; b=PA6JJXkOdND8b+RNbMN1TSOLsAnKgr3t9WwcJCQl5QFHlwpK1L4pDfipRwR5dfLbFf N61eW/ldKClcAfqDNADB0hAxt4TGoio1ZKsCHMXBMK2wZp1QQJFGGtgs4cPCMUgz6HJG 5ky6kLVdt8uwQCGjUETyJMXRfNXNRKcSm1+crcO7PjzfW5nB16cecQ1Nhd7cqqJNxz9g JT7DmWrsLvI8ra07WYV/eQJQdlSM8+JSO8/F9jIuK3eZltibbYPniW/Auq/GbWXKMQVg N7WSXYeSK/NqZpM95yTTlvXGJsTlLs5sDuvdacrqABuVOZ1yzu73Y6rl6Vd2iYaK7EjO jEIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@deltatee.com header.s=20200525 header.b=Y1cJBAK8; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si2629378ejr.510.2020.06.11.12.26.30; Thu, 11 Jun 2020 12:26:52 -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=fail header.i=@deltatee.com header.s=20200525 header.b=Y1cJBAK8; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726642AbgFKTTj (ORCPT + 99 others); Thu, 11 Jun 2020 15:19:39 -0400 Received: from ale.deltatee.com ([204.191.154.188]:57866 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbgFKTTi (ORCPT ); Thu, 11 Jun 2020 15:19:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Iul3mhrear09phmCu8JOZ2yhnz8/T9YMeSEnL8Miao0=; b=Y1cJBAK8vNbryfPIus+U/Dma8B i9banNR5DsvyXjk4Tsu/Pdq2z1YMAZRkMwetYqGGCELrWYoUbzaurNF4w2d6qpznr/8sbiZjCZNUv S28/T6ox5aly2VhOIDJuARkPfJZMx6RxbyjwuFGLQwV/wAOFDo8rWC+JPzfnwT3wD4ZvQKQXia7fb jZn2LBT+g9zg28zvTzs5/kF+WNn6DazAyCLruKhMp14UK2xCMPFPzL02MbywHPyWkSblTtH4ffFSW w4PHDUQG+ZZO1TbwkzKyS+2kpivcHW2f2U7kXrM65CQhtJKG2gKUWF3K5GtqXY9Puab32WEnRZkUK o4AsM/dw==; Received: from s01060023bee90a7d.cg.shawcable.net ([24.64.145.4] helo=[192.168.0.10]) by ale.deltatee.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jjSjV-0004uU-IV; Thu, 11 Jun 2020 13:19:26 -0600 To: Chaitanya Kulkarni Cc: "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" , Christoph Hellwig , Sagi Grimberg , Keith Busch , Jens Axboe , Max Gurtovoy , Stephen Bates References: <20200514172253.6445-1-logang@deltatee.com> From: Logan Gunthorpe Message-ID: <973eb071-45ad-26f1-17d0-325d637a9750@deltatee.com> Date: Thu, 11 Jun 2020 13:19:21 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.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: 24.64.145.4 X-SA-Exim-Rcpt-To: sbates@raithlin.com, maxg@mellanox.com, axboe@fb.com, kbusch@kernel.org, sagi@grimberg.me, hch@lst.de, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Chaitanya.Kulkarni@wdc.com 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=-6.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH v13 0/9] nvmet: add target passthru commands support X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +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 2020-06-11 1:16 p.m., Chaitanya Kulkarni wrote: > On 5/14/20 10:23 AM, Logan Gunthorpe wrote: >> This is v13 of the passthru patchset which is mostly a resend of v12 >> with Sagi's reviewed-by tags collected. >> >> Below, I'll reiterrate some points I made previously that haven't been >> responded to: >> >> I don't think cloning the ctrl_id or the subsysnqn is a good idea. >> I sent an email trying to explain why here[1] but there was no response. >> In short, I think cloning the ctrl_id will break multipathing over >> fabrics and copying the subsysnqn only has the effect of breaking >> loopback; the user can always copy the underlying subsysnqn if it >> makes sense for their overall system. >> >> I maintain overriding the CMIC bit in the ctrl id is necessary to >> allow multipath over fabrics even if the underlying device did >> not support multipath. >> >> I also think the black list for admin commands is appropriate, and I >> added it based on Sagi's feedback[2]. There are plenty of commands that >> may be dangerous like firmware update and format NVM commands, and NS >> attach commands won't work out of the box because we don't copy the >> ctrl_id. It seems like there's more commands to be careful of than ones >> that are that are obviously acceptable. So, I think the prudent course >> is blacklisting by default until someone has a usecase and can show >> the command is safe seems and makes sense. For our present use cases, >> the identify, log page and vendor specific commands are all that we >> care about. >> >> A git branch is available here and is based on v5.7-rc5: >> >> https://github.com/sbates130272/linux-p2pmem nvmet_passthru_v13 >> >> [1]https://lore.kernel.org/linux-block/247eca47-c3bc-6452-fb19-f7aa27b05a60@deltatee.com/ >> [2]https://lore.kernel.org/linux-block/e4430207-7def-8776-0289-0d58689dc0cd@grimberg.me/ >> >> -- >> >> v13 Changes: >> 1. Rebased onto v5.7-rc5 >> 2. Collected Sagi's Reviewed-by tags > > Are you planning to send V14 based on nvme-5.9 branch ? > I don't have any plans to yet, but I certainly can. I usually wait until after the merge window to resend. I can certainly look at rebasing onto nvme-5.9 for next time. Logan