Semaphore

Konstantin Zertsekel zertsekel at gmail.com
Tue Feb 21 10:12:56 EST 2012


On Tue, Feb 21, 2012 at 3:47 PM, SaNtosh kuLkarni
<santosh.yesoptus at gmail.com> wrote:
> A certain kernel process has acquired a semaphore lock and meanwhile during this period
> the process gets killed abruptly (and it has not released the sem lock..//.sem down).....
> and the other processes cannot acquire the lock, what can be done in this case.

The only check I see is debug_check_no_locks_held() in kernel/exit.c
file, do_exit().
But it seems to be relevant only for 'CONFIG_LOCKDEP'...
Does anyone know the correct answer?

Thanks,
--- KostaZ



More information about the Kernelnewbies mailing list