From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: fs: dcookie: freeing active timer Date: Thu, 24 Apr 2014 22:55:58 +0100 Message-ID: <20140424215558.GZ18016@ZenIV.linux.org.uk> References: <53594244.6070305@oracle.com> <20140424172708.GY18016@ZenIV.linux.org.uk> <53594B16.4000901@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel , Jan Kara , Dave Jones , LKML , Thomas Gleixner To: Sasha Levin Return-path: Content-Disposition: inline In-Reply-To: <53594B16.4000901@oracle.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Apr 24, 2014 at 01:34:14PM -0400, Sasha Levin wrote: > > Why does that code bother with destroying/creating that sucker dynamically? > > Is there any point at all? > > I'm not sure about the dynamic allocation part, but I fear that if we just > switch to using static allocations it'll hide the underlying issue that > triggered this bug instead of fixing it. FWIW, slub.c variant of kmem_cache_destroy() is buggered - struct kobject embedded into struct kmem_cache, its ktype is slab_ktype, which has NULL ->release()...