[etherlab-dev] uninterruptible sleep in ecrt_release_master()

Florian Pose fp at igh-essen.com
Tue Aug 26 18:32:18 CEST 2008


Hi,

On Tue, Aug 26, 2008 at 09:44:05PM +0900, Hobin Yoon wrote:
> While I was loading and unloading mini module, I found that
> /sbin/rmmod hangs(goes to uninterruptible sleep) at a ratio of 1 in
> 100.
> I found the master thread still runs its while loop even after rmmod
> thread issued SIGTERM.

I recently fixed that problem. It came up when the master thread was
created, but had no possibility to run and set its sigmask and then is
killed again. I will release a second release candidate tomorrow.

> There seems to be a race condition between kill_proc() and signal_pending().
> So I modified the waiting thread to issue the signal again after
> waiting some time until the master thread completes.

I solved it by introducing a completion object.

-- 
Best regards,
Florian Pose

http://etherlab.org



More information about the etherlab-dev mailing list