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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tejun Heo <htejun@...>
Cc: Jonathan Corbet <corbet@...>, <ebiederm@...>, <cornelia.huck@...>, <greg@...>, <kay.sievers@...>, <linux-kernel@...>, <rusty@...>
Date: Tuesday, September 25, 2007 - 10:24 am

On Tue, 25 Sep 2007, Tejun Heo wrote:


You haven't fully answered Jon's question.  Suppose
module_unload_inhibit_cnt is nonzero, so the task adds itself to the
module_unload_wait queue, changes to TASK_UNINTERRUPTIBLE, and calls
schedule.  There's nothing to prevent somebody else from waking the
task back up before the original inhibition has been lifted.

Alan Stern

-
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(), Alan Stern, (Tue Sep 25, 10:24 am)
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(), 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)