Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6DFDC433EF for ; Mon, 22 Nov 2021 13:59:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239142AbhKVOCR (ORCPT ); Mon, 22 Nov 2021 09:02:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:43062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232880AbhKVOCQ (ORCPT ); Mon, 22 Nov 2021 09:02:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 85712608FB; Mon, 22 Nov 2021 13:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1637589550; bh=mdJklURZcfc5e0LfT0HMi5+15iVbXFSPMMnEJ4rEGQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CAdNr5l/SO7DQcMd9YvUtPjG5anPjzGgUu1Bn/LJ6XPHnMO+C8n5NAdE9+8QKjfqW ZUaHlcbUUvC2g2nS5wMWxkITx3v4lDHJxL2G591r/hO7MN07oACCRjIaWZbfJJYfuE SmZrF0dKDH8B+MCPNiuoRUoeKyTHa7MdHHRqlf/g= Date: Mon, 22 Nov 2021 14:59:07 +0100 From: Greg Kroah-Hartman To: Matthew Wilcox Cc: Jeremy Kerr , netdev@vger.kernel.org, Matt Johnston , "David S. Miller" , Jakub Kicinski , Jiri Slaby Subject: Re: [PATCH net-next] mctp: Add MCTP-over-serial transport binding Message-ID: References: <20211122042817.2988517-1-jk@codeconstruct.com.au> <123a5491b8485f42c9279d397cdeb6358c610f6c.camel@codeconstruct.com.au> <9652c9dd6b6238922f45ee71cf341cac88449b98.camel@codeconstruct.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Nov 22, 2021 at 01:11:52PM +0000, Matthew Wilcox wrote: > On Mon, Nov 22, 2021 at 04:23:10PM +0800, Jeremy Kerr wrote: > > Hi Greg, > > > > > ida_destroy() will not be a no-op if you have allocated some things > > > in the past.  It should always be called when your module is removed. > > > > > > Or at least that is how it used to be, if this has changed in the > > > past year, then I am mistaken here. > > I think Greg is remembering how the IDA behaved before it was converted > to use the radix tree back in 2016 (0a835c4f090a). About two-thirds > of the users of the IDA and IDR forgot to call ida_destroy/idr_destroy, > so rather than fix those places, I decided to make those data structures > no longer require a destructor. Ah, yes. Glad to see that's no longer needed, sorry for the noise and thanks for correcting me. greg k-h