Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1431094pxf; Fri, 2 Apr 2021 10:17:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsu3HK3zcELTKEH10Jyk16nR+Cb2EhcojZ8xxXUWY6JY3WkX6iY/aYgSaYV1bOPZmiM1cf X-Received: by 2002:a92:444e:: with SMTP id a14mr11613489ilm.215.1617383840701; Fri, 02 Apr 2021 10:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617383840; cv=none; d=google.com; s=arc-20160816; b=NKqfVOykl8cc/2dLwHkQOpDmOP6UFhF75j5UBjjXBqWDH1ZH2iHCjMc5Py6P0tWWMA zTfM5LjOXW+Zxo7/+Bs1R5XWwSPh9I/QEd4K2OabD6c+FNFnr2fVzyamFE3jepdr7lSu 0nMG9Ai6QY6fQbzsaeeobCflDBxozeu0A0V+9Wt2Hv44xx5cUk8HoxW/iaUDMkcPpaR/ L96s9SMd9f+6hpJL0w5ML30ojIh2x0KaDMDS3Ml0bBH0Hunbw50AKZZrzFRImYcxeSnv ud15qlDYFebedOMuIk3RjU0W0FVL+Oyd4dbesEBaYvCcjuEf0bJwOqHjXM6Hf9lqfr5Y ApFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=8caSFt52OyuHIYJ+hhZ3SsP69KXdn7HZdrJ2aOvIrRk=; b=uJB0UytHicaTnCbW2F+YLVAWC0+jj35IDi+BWYE+hz+QZhX0YBbrwlhWoAwLtT6O7j JpU+YJL5FHOOr9qP0ILt0e+Eh9D1Br47vwHqvwXQu/oEXm8xOYWH/GhBfUVDvuCA4+su 313XHXdOszhgcNkbfLCoBQb/9XOMpNzZa6NF8VgBqv1TFrLg0xTxlU5d9XPBzOjgIsQs T3sOakdc1oOnYDeE5pAcQ9OW3h9WzIgetHjxEiBQO/0vAdr8FpAfX80vftzs2NUQPqV+ qArDtQC4o2fZQeHgJi8+drIaQsUBKk6pihRDRncIb2sFXyyY1Zu1kz8zm0FzPGz6yh7o k/fQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t13si7756835iln.22.2021.04.02.10.17.06; Fri, 02 Apr 2021 10:17:20 -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; 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 S235426AbhDBRQw (ORCPT + 99 others); Fri, 2 Apr 2021 13:16:52 -0400 Received: from verein.lst.de ([213.95.11.211]:44403 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234759AbhDBRQw (ORCPT ); Fri, 2 Apr 2021 13:16:52 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 7601268BEB; Fri, 2 Apr 2021 19:16:48 +0200 (CEST) Date: Fri, 2 Apr 2021 19:16:48 +0200 From: Christoph Hellwig To: Niklas Cassel Cc: Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , "minwoo.im.dev@gmail.com" , "javier@javigon.com" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH] nvme: allow NVME_IOCTL_IO_CMD on controller char dev even when multiple ns Message-ID: <20210402171648.GA22651@lst.de> References: <20210326205943.431185-1-Niklas.Cassel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326205943.431185-1-Niklas.Cassel@wdc.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Well, there is at least one good reason for not allowing this retroactively: Old users of the ioctl could have complete garbage in the field, and might send the command to a random namespace now instead of the first one. So unles we have a very good reason I think we should keep NVME_IOCTL_IO_CMD on the controller char dev deprecated and maybe eventually remove it.