From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCHv2 2/2] i915: do not leak module ref counter Date: Tue, 20 Aug 2019 07:56:23 +0200 Message-ID: <20190820055623.GC27501@lst.de> References: <20190820031359.11717-1-sergey.senozhatsky@gmail.com> <20190820031359.11717-2-sergey.senozhatsky@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20190820031359.11717-2-sergey.senozhatsky@gmail.com> Sender: linux-kernel-owner@vger.kernel.org To: Sergey Senozhatsky Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , Alexander Viro , David Howells , Christoph Hellwig , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Sergey Senozhatsky List-Id: dri-devel@lists.freedesktop.org On Tue, Aug 20, 2019 at 12:13:59PM +0900, Sergey Senozhatsky wrote: > Always put_filesystem() in i915_gemfs_init(). > > Signed-off-by: Sergey Senozhatsky > --- > - v2: rebased (i915 does not remount gemfs anymore) Which means it real doesn't need its mount anyore, and thus can use plain old shmem_file_setup and doesn't need to mess with file system types at all. Assuming we find a legitimate rason for why a driver should be able to create a kernel mount or a file system type where it doesn't have access to the struct file_system_type an API that mount by file system name and thus hides the get_fs_type and put_filesystem would be a much better API than adding this random export.