From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from exprod7og110.obsmtp.com ([64.18.2.173]) by bombadil.infradead.org with smtps (Exim 4.68 #1 (Red Hat Linux)) id 1JRsF0-0000n3-PM for linux-mtd@lists.infradead.org; Wed, 20 Feb 2008 16:56:19 +0000 Date: Wed, 20 Feb 2008 16:55:13 +0000 From: Stephane Chazelas To: =?iso-8859-1?Q?J=F6rn?= Engel Subject: Re: [PATCH 2.6.24] block2mtd: removing a device and typo fixes Message-ID: References: <20080212152124.GA21878@lazybastard.org> <20080219150822.GA29587@lazybastard.org> <20080220164226.GF5539@lazybastard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080220164226.GF5539@lazybastard.org> Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 2008-02-20 17:42:27 +0100, Jörn Engel: > On Wed, 20 February 2008 14:36:46 +0000, Stephane Chazelas wrote: > > > > At the moment, when we bind a mtd device to a block device, we > > don't increase the refcount. When a mtdblock on a block2mtd, the > > refcount is not increased either (the mtdblock's one is I > > guess). > > That is a bug then. [...] Well, given that there is no API to unbind a mtd to a block device, otherwise, we would never be able to unload block2mtd. So fare, unloading block2mtd was the only way to unbind a mtd from a block device. Cheers, Stephane