Re: Quick question about do_exit...

From: Tigran Aivazian (tigran@veritas.com)
Date: Thu Jul 06 2000 - 02:06:21 EST


On Wed, 5 Jul 2000, Chris Lattner wrote:

>
> I have a quick question about the do_exit function... the bottom of which
> looks like this:
>
> lock_kernel();
> fake_volatile:
> #ifdef CONFIG_BSD_PROCESS_ACCT
> acct_process(code);
> #endif
> sem_exit();
> __exit_mm(tsk);
> __exit_files(tsk);
> __exit_fs(tsk);
> __exit_sighand(tsk);
> exit_thread();
> tsk->state = TASK_ZOMBIE;
> tsk->exit_code = code;
> exit_notify();
> put_exec_domain(tsk->exec_domain);
> if (tsk->binfmt && tsk->binfmt->module)
> __MOD_DEC_USE_COUNT(tsk->binfmt->module);
> schedule();
>
> Where does the kernel lock get dropped? I can't seem to find out where
> this is... and I have looked high and low. :)
>

have a look in schedule(). Hint - release_kernel_lock().

Regards,
Tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:18 EST