[lkml]   [2008]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/2] md: make devices disappear when they are no longer needed.
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.

 \ /
  Last update: 2008-11-24 14:35    [W:0.051 / U:8.152 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site