Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3145513ybe; Sun, 8 Sep 2019 08:03:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqz27M70BhPsUNM+srdcZ9XHjXoQph+OqEjjo53ttbHSVlXcLwp3BOFsFOOVpuxHTmU36XlG X-Received: by 2002:a65:5a44:: with SMTP id z4mr17443721pgs.41.1567955038797; Sun, 08 Sep 2019 08:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567955038; cv=none; d=google.com; s=arc-20160816; b=tNp0/3vTLWZyq7+QAZkWsqiXXRtzBymWc/dmkSD7YATFKngBejvK+J1F3UZVH+14Fh cIhmMhoKV2RYAZSH4a4i4VkrfrwfUCFkclhfSqrROt3Il7pN/JGdx8GigjgyEQxjj4ip njZ1tSoULBim3OmnfWlL3bPBpMkF6QYkvfk/SuCNup1xLPvSbaoEJAD3IaHf19JRjBJ4 2JGdPsAR8Id3cjiQZSrjl/ci+VxGDMEoLQlF5egeTyc1QVYCDg+fjPBxRvbL3tvX14yG n0ALrtPum+8/tjfoGj7YrMkmQCUKUT4GR9Bhat6hEz4cqW5W+ZBeS8+fdDrCkQiOK/ya rqVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=RHAhUw8JyYTsJvg4vmUzKRzM78YLPUMEpN/OZDtpePc=; b=CLO4Wx3VNpMjGvThjfmEZsvfr9mYZbtoqKnX+RaLkFbB+pdATWEIDuUMBDPEZjZeHK pnQnOcRxdWn0662FERq+hHRvk8mzM6RQSMIrWlfWqzT1AjGiI0JzaP5spD+7y0ho30c2 k2Ynvg6raodY0xXm98ZGpbtjQUjnBWso0cSj8tE9pdnnkVn8qeWsmR+gaa9q05PtCNFq xydLxxUTr4vBPU8j6F4evSM+0PbTWBw1yYFEaDL2owGeft4+fEvSW8q8Tt6D2SO/Zsna MTDmT3S6ATHtrXdP5JYodPZkHvlsXWu7Cx19DwFqFsyKltvUqtuMA6ivT84MB7quGwM1 VIlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=MCVfr7wV; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22si6506330pjw.22.2019.09.08.08.03.43; Sun, 08 Sep 2019 08:03:58 -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=@samsung.com header.s=mail20170921 header.b=MCVfr7wV; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404718AbfIGGNz (ORCPT + 99 others); Sat, 7 Sep 2019 02:13:55 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:20535 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729409AbfIGGNy (ORCPT ); Sat, 7 Sep 2019 02:13:54 -0400 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20190907061352epoutp029a5631d5a3b6c7cdcaf332f822ff2e55~CE0rO_aMK2816828168epoutp02g for ; Sat, 7 Sep 2019 06:13:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20190907061352epoutp029a5631d5a3b6c7cdcaf332f822ff2e55~CE0rO_aMK2816828168epoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1567836832; bh=RHAhUw8JyYTsJvg4vmUzKRzM78YLPUMEpN/OZDtpePc=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=MCVfr7wVX4d+qWJL9zLWZo4/jFrUZ14QgyxGlGkTyLePdHh91jyTK7FC4jlmLK5P/ KHxX6BHyc5rqyf8qsnxsSRDq53TFb2Qlw+WgCkHgKr5H5jgMpeE/NQMhfbS5FXfoRg TCnW8JUtSicwg7D1Z72ynYSahBWxBn3k0Ac69QYo= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20190907061351epcas2p1c289b7660c2cb94b4edcce4d6fb1f592~CE0qNW_id0282402824epcas2p1L; Sat, 7 Sep 2019 06:13:51 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.188]) by epsnrtp3.localdomain (Postfix) with ESMTP id 46QPJG0HvrzMqYkV; Sat, 7 Sep 2019 06:13:50 +0000 (GMT) X-AuditID: b6c32a46-fedff70000001035-5a-5d734a9d573f Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 6B.F8.04149.D9A437D5; Sat, 7 Sep 2019 15:13:49 +0900 (KST) Mime-Version: 1.0 Subject: Re: [PATCHv2] nvme: Assign subsy instance from first ctrl Reply-To: minwoo.im@samsung.com From: Minwoo Im To: Keith Busch , Minwoo Im CC: Christoph Hellwig , "linux-nvme@lists.infradead.org" , Sagi Grimberg , Hannes Reinecke , "Martin K . Petersen" , "linux-kernel@vger.kernel.org" , Jens Axboe , Logan Gunthorpe X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20190905163354.25139-1-kbusch@kernel.org> X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20190907061349epcms2p76a7cba4689b2ff2bd5a65640f5529605@epcms2p7> Date: Sat, 07 Sep 2019 15:13:49 +0900 X-CMS-MailID: 20190907061349epcms2p76a7cba4689b2ff2bd5a65640f5529605 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA02TfUgUaRzHe3bG2VGbmDazXwa1TEVXZO0u7jpZRmQnk5ckRP9cmTe4DyrO 7k4za5TBJUlZ9kIGxt1e5dJtSRqJ24uL28uxWQvVJdgZrNFWkAZaSmUvx1XejqPUfx++fJ/n +/s+LzRh6qAy6Aq3FytuUeKoFPLqrcX2zFMFarGl/cxKfuzaHYr3v7pO8edbbxv445FHiH/Y eZLim871G/nAvijFN0e/GviBe38R/MWhEXJNijDQO4CEhtpho9AdbyeFYMtBSrgU2COEYzWU 8Ka/jxSOXm5BQtvlXlJ4F5xblPKztKoci06smLG71OOscJflcj9tKskrsTss1kzrCj6bM7tF F87l1m0oysyvkBLTcuYdolSVkIpEVeWWr16leKq82FzuUb25HJadkmy1ystU0aVWucuWlXpc OVaLxWZPOH+Ryp/4D1FyF73zw+h7Qw0ao+pRMg1sFoQf9pP1KIU2sSEEv9/oNtYjmmbY6fAl NEPzzGDXwp+HjyZpsomdB58GLbq8GIbD95M0pthFUNM4SGqcxubDgaefCG1Lgn1pgCMHIxNZ DPxW10/qPAc6mq8gjZPZbAifOD7hmQmx1tfGSR6504R0ToN98b8JnafDs3/DSJsHWID48God axF8ztMdhxG0txXonA3/PQ2Pj8mwhfD20ZBBs5PsQrgyquiWdRC9e3Y8lEgU7Hh9ktAsRKJh W+dyffP50NVH6o5pcODWF+NkpdDpFwad58ObSGRixNnQ3DM0UUmAax96xnUT+ytEfbfJY8js +3bIvu9yfd9y/YhoQelYVl1lWLXJtu/vNYjGH+2S/BAKPNgQQSyNuKkMn6cUm5LEHeouVwQB TXBpTFu7XGxinOKuaqx4SpQqCasRZE+0byAyZpZ6El/A7S2x2m0Oh2WFnbc7bDw3iwmmxraa 2DLRiysxlrEyuc5AJ2fUoC11OUJh6n5m/UWxxe6rrnuXGtgdM7Y27R0b2bTgx42nJEnpOrFt s7M7nhGK45ybS9N/6OrrUxd0Ev7qusbRwu3yP717Bl95Yg6LUPtH5QPvc8fd65sLwj3pj/kL AfBkBT+nq/KUtcnUhUZ29kd/Gm6sFBqiTNbc6vP3O/MwR6rlonUJoaji/+Pv3vXKAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190905163547epcas5p185b3455e7f33cff005c48a0f25745bab References: <20190905163354.25139-1-kbusch@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: [PATCHv2] nvme: Assign subsy instance from first ctrl I'm not sure but, I have not seen 'subsy' thing before. Maybe s/sybsy/subsys/ ? > > The namespace disk names must be unique for the lifetime of the > subsystem. This was accomplished by using their parent subsystems' > instances which were allocated independently from the controllers > connected to that subsystem. This allowed name prefixes assigned to > namespaces to match a controller from an unrelated subsystem, and has > created confusion among users examining device nodes. > > Ensure a namespace's subsystem instance never clashes with a controller > instance of another subsystem by transferring the instance ownership > to the parent subsystem from the first controller discovered in that > subsystem. > > Reviewed-by: Logan Gunthorpe > Signed-off-by: Keith Busch Keith, Thanks for this patch. I really like this concept which can avoid from instance mistakes. Otherwise looks good to me. Reviewed-by: Minwoo Im