summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikanth Karthikesan <knikanth@suse.de>2008-11-19 12:20:23 +0300
committerJens Axboe <jens.axboe@oracle.com>2008-12-29 10:28:43 +0300
commit7c0990c7ee988aa193abbb7da3faeb9279146dbf (patch)
tree785708206467f03cf07c72dae65f56531bfd7449
parentd194139c18edb7dae45e159a24f2aa72091033b8 (diff)
downloadlinux-7c0990c7ee988aa193abbb7da3faeb9279146dbf.tar.xz
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>
-rw-r--r--kernel/exit.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index c7422ca92038..9a213474f54a 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();
}