diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2008-11-19 10:20:23 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-12-29 08:28:43 +0100 |
commit | 7c0990c7ee988aa193abbb7da3faeb9279146dbf (patch) | |
tree | 785708206467f03cf07c72dae65f56531bfd7449 /kernel/exit.c | |
parent | d194139c18edb7dae45e159a24f2aa72091033b8 (diff) | |
download | kernel_samsung_tuna-7c0990c7ee988aa193abbb7da3faeb9279146dbf.zip kernel_samsung_tuna-7c0990c7ee988aa193abbb7da3faeb9279146dbf.tar.gz kernel_samsung_tuna-7c0990c7ee988aa193abbb7da3faeb9279146dbf.tar.bz2 |
Do not free io context when taking recursive faults in do_exit
When taking recursive faults in do_exit, if the io_context is not null,
exit_io_context() is being called. But it might decrement the refcount
more than once. It is better to leave this task alone.
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index c7422ca..9a21347 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -1037,8 +1037,6 @@ NORET_TYPE void do_exit(long code) * task into the wait for ever nirwana as well. */ tsk->flags |= PF_EXITPIDONE; - if (tsk->io_context) - exit_io_context(); set_current_state(TASK_UNINTERRUPTIBLE); schedule(); } |