Re: [PATCH 1/4] module: implement module_inhibit_unload()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rusty Russell <rusty@...>
Cc: Jonathan Corbet <corbet@...>, <ebiederm@...>, <cornelia.huck@...>, <greg@...>, <stern@...>, <kay.sievers@...>, <linux-kernel@...>
Date: Monday, September 24, 2007 - 9:40 pm

Rusty Russell wrote:

We always did that.  Before the patch the code segment looked like the
following.

	/* Final destruction now noone is using it. */
	if (mod->exit != NULL) {
		mutex_unlock(&module_mutex);
		mod->exit();
		mutex_lock(&module_mutex);
	}	


I think this sort of temporary unload blocking would be useful for other
cases like this.

Thanks.

-- 
tejun
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCHSET 2/4] sysfs: allow suicide, Tejun Heo, (Thu Sep 20, 3:26 am)
Re: [PATCHSET 2/4] sysfs: allow suicide, Greg KH, (Tue Sep 25, 6:02 pm)
Re: [PATCH 1/4] module: implement module_inhibit_unload() , Jonathan Corbet, (Mon Sep 24, 6:00 pm)
Re: [PATCH 1/4] module: implement module_inhibit_unload(), Rusty Russell, (Tue Sep 25, 7:41 pm)
Re: [PATCH 1/4] module: implement module_inhibit_unload(), Rusty Russell, (Mon Sep 24, 7:42 pm)
Re: [PATCH 1/4] module: implement module_inhibit_unload(), Tejun Heo, (Mon Sep 24, 9:40 pm)
Re: [PATCH 1/4] module: implement module_inhibit_unload(), Rusty Russell, (Mon Sep 24, 10:12 pm)
Re: [PATCH 1/4] module: implement module_inhibit_unload(), Rusty Russell, (Mon Sep 24, 11:21 pm)
Re: [PATCH 1/4] module: implement module_inhibit_unload(), Rusty Russell, (Tue Sep 25, 12:38 am)
Re: [PATCH 1/4] module: implement module_inhibit_unload(), Rusty Russell, (Tue Sep 25, 4:50 am)
Re: [PATCH 1/4] module: implement module_inhibit_unload(), Cornelia Huck, (Tue Sep 25, 4:01 am)