Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp274357ybl; Thu, 29 Aug 2019 22:56:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJZTwCFZneQvl3S4rUyKvuIymHuEE6soMz7XmSzWY3LNlLDi0kP78a6lUhqFA/lT39dUCG X-Received: by 2002:a63:4c5a:: with SMTP id m26mr11401239pgl.270.1567144582967; Thu, 29 Aug 2019 22:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567144582; cv=none; d=google.com; s=arc-20160816; b=DNejMkWszv4DcIu6wcH8gZgIBACWF4wyVCBXu7NAoHCqyEYLYoPnXA19Px0v8sA2V+ 9cqPAvCbPb4Qdq8xcZtPKqd8Ef0ImUgcSqPLwJLJMH2BDNhzUAspwZcuJvDtRxBItQpQ mORzKSjfI6JkEUfZTWLoaIQNKccN5UNJnPFhLuVo2eSnrnhw/Am105BrzrDKO37s9eBr 5QROVqA7hcQ06Ezdkqucgw+9OSTk/4jgY+EFqHBmqA0w/r1jWjJvrTj/LqWu7Br8nn8l h+kVk2qRLK9PIlaXOv3kMwl6lPCNH8BJpEhtZm0BCGHOXebP7WLlhua7dAb401xWE/5T gHuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vskAO5N1yWZN61AjembeS4Psixoq6wmCtuaX55rYDu8=; b=y0zbWanJT4aYOSxKSnvToLTt+xZjbYGForRrvQ1oLtk496fHSEx/RrYtdND+TLwWon l86EA4GuXrsPXGMGGjC+uDRgRI+cvBM38uQV/0sNConhI7+ecsGomW6VNXcP/GNq6Oz0 APXFIMNKOx1YfUPUJ3EXTyDThx7nW60Zy4GlzDzkbwKo8eHl0s4+VV60h8gI+HtrZ+sH /RSyMPI3kQNJegTD94c09JE/Y/k7Fk1aXqcxlKBaT/HS9Fm8FwRzVmupK5ckjG7o7lqY iL3hloPGYnzcUjEnkJDkK+4fDqhcVPq5cPiBrr+D1nt7cyoD6vbgqSSm+X6pV3Voa699 j+vw== 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 w66si4940465pfw.65.2019.08.29.22.56.06; Thu, 29 Aug 2019 22:56:22 -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 S1726791AbfH3FzS (ORCPT + 99 others); Fri, 30 Aug 2019 01:55:18 -0400 Received: from verein.lst.de ([213.95.11.211]:52523 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbfH3FzR (ORCPT ); Fri, 30 Aug 2019 01:55:17 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 4D70C68B20; Fri, 30 Aug 2019 07:55:14 +0200 (CEST) Date: Fri, 30 Aug 2019 07:55:14 +0200 From: Christoph Hellwig To: Sagi Grimberg Cc: Greg Kroah-Hartman , Christoph Hellwig , linux-nvme@lists.infradead.org, Keith Busch , James Smart , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] nvme: fire discovery log page change events to userspace Message-ID: <20190830055514.GC8492@lst.de> References: <20190712180211.26333-1-sagi@grimberg.me> <20190712180211.26333-4-sagi@grimberg.me> <20190822002328.GP9511@lst.de> <205d06ab-fedc-739d-323f-b358aff2cbfe@grimberg.me> <20190826065639.GA11036@lst.de> <20190826075916.GA30396@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 11:21:02AM -0700, Sagi Grimberg wrote: >> Yes we do, userspace should use it to order events. Does udev not >> handle that properly today? > > The problem is not ordering of events, its really about the fact that > the chardev can be removed and reallocated for a different controller > (could be a completely different discovery controller) by the time > that userspace handles the event. The same is generally true for lot of kernel devices. We could reduce the chance by using the idr cyclic allocator.