Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752415AbYKXNbp (ORCPT ); Mon, 24 Nov 2008 08:31:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753286AbYKXNb1 (ORCPT ); Mon, 24 Nov 2008 08:31:27 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:46290 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbYKXNb0 (ORCPT ); Mon, 24 Nov 2008 08:31:26 -0500 Date: Mon, 24 Nov 2008 13:31:24 +0000 From: Al Viro To: Tejun Heo Cc: Neil Brown , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Doug Ledford , Greg KH , Jens Axboe Subject: Re: [PATCH 1/2] md: make devices disappear when they are no longer needed. Message-ID: <20081124133124.GB28946@ZenIV.linux.org.uk> References: <20081124035516.3465.66413.stgit@notabene.brown> <20081124035530.3465.26724.stgit@notabene.brown> <492A2B2B.7030606@kernel.org> <18730.14324.830648.449469@notabene.brown> <492A3CE6.4010206@kernel.org> <20081124062417.GZ28946@ZenIV.linux.org.uk> <492A500C.9090200@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <492A500C.9090200@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 752 Lines: 20 On Mon, Nov 24, 2008 at 03:56:12PM +0900, Tejun Heo wrote: > mddev holds module reference and till the gendisk is gone mddev won't > be gone, so as long as gendisk is around the respective mddev and > md.ko are around. It doesn't and it *could* *not* - you can't drop the final reference to module from within that module, period. > I don't think it's necessary to allow modules to unload while devices > are hot. gendisk may stay referenced past the point when everything got closed and unregistered. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/