Tejun Heo wrote: > Rusty Russell wrote: >> Now, are you sure that calling cleanup_ccwgroup just after >> device_unregister() works? >> >> static void __exit >> cleanup_ccwgroup (void) >> { >> bus_unregister (&ccwgroup_bus_type); >> } > > It should. After ->exit() is called, there can't be any object left > behind. If a module is hosting objects which can't be destroyed from > ->exit(), its module ref count shouldn't be zero. So, either 1. > refcount != 0 or 2. ->exit() can destroy all objects. As Cornelia > explains, for ccwgroup, it's #1. Note that unload inhibition doesn't > change anything about this. Hmmm.... There doesn't seem to any reason why the blocking should be after calling ->exit(). And, yeah, it would be more useful and intuitive if blocking happens before ->exit(). What do you think? Thanks. -- tejun - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Rusty Russell <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- References:
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: [email protected] (Jonathan Corbet)
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Tejun Heo <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Rusty Russell <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Tejun Heo <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Rusty Russell <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Tejun Heo <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Rusty Russell <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Tejun Heo <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Rusty Russell <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- From: Tejun Heo <[email protected]>
- Re: [PATCH 1/4] module: implement module_inhibit_unload()
- Prev by Date: Re: ACPI power off regression in 2.6.23-rc8 (NOT in rc7)
- Next by Date: RE: Problems with 2.6.23-rc6 on AMD Geode LX800
- Previous by thread: Re: [PATCH 1/4] module: implement module_inhibit_unload()
- Next by thread: Re: [PATCH 1/4] module: implement module_inhibit_unload()
- Index(es):