From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ale.deltatee.com ([207.54.116.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ciYSr-0008V9-Ur for linux-mtd@lists.infradead.org; Tue, 28 Feb 2017 03:28:39 +0000 To: Jason Gunthorpe , Dan Williams References: <1488091097-12328-1-git-send-email-logang@deltatee.com> <1488091097-12328-2-git-send-email-logang@deltatee.com> <20170227165618.GE5891@obsidianresearch.com> Cc: Greg Kroah-Hartman , Alexander Viro , Johannes Thumshirn , Jan Kara , Arnd Bergmann , Sajjan Vikas C , Dmitry Torokhov , Linus Walleij , Alexandre Courbot , Peter Huewe , Marcel Selhorst , Jarkko Sakkinen , Olof Johansson , Doug Ledford , Sean Hefty , Hal Rosenstock , Dmitry Vyukov , Haggai Eran , Parav Pandit , Leon Romanovsky , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Hans Verkuil , Mauro Carvalho Chehab , Artem Bityutskiy , Richard Weinberger , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Cyrille Pitchen , Matt Porter , Alexandre Bounine , Andrew Morton , Joe Perches , Lorenzo Stoakes , Vladimir Zapolskiy , Alessandro Zummo , Alexandre Belloni , Boaz Harrosh , "James E.J. Bottomley" , "Martin K. Petersen" , Stephen Bates , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-scsi , rtc-linux@googlegroups.com, linux-mtd@lists.infradead.org, "Linux-media@vger.kernel.org" , linux-iio@vger.kernel.org, linux-rdma@vger.kernel.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, "linux-nvdimm@lists.01.org" , linux-fsdevel , "linux-kernel@vger.kernel.org" From: Logan Gunthorpe Message-ID: <7df6e57b-531c-1b23-05bf-c368df2d20f3@deltatee.com> Date: Mon, 27 Feb 2017 20:27:44 -0700 MIME-Version: 1.0 In-Reply-To: <20170227165618.GE5891@obsidianresearch.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2 01/16] chardev: add helper function to register char devs with a struct device List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 27/02/17 09:56 AM, Jason Gunthorpe wrote: > Yes please, that is way too subtle. Suggest: > > NOTE: Callers must assume that userspace was able to open the cdev and > can call cdev fops callbacks at any time, even if this function fails. > > I would also add a note to cdev_device_del: > > NOTE: This guarantees that associated sysfs callbacks are not running > or runnable, however any open cdevs will remain and their fops remain > callable even after this returns. > > Since I have seen a lot of confusion on that point as well.. Sure, I'll add that verbiage to a v3 sometime after rc1. Logan