diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2008-11-19 04:20:23 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-12-29 02:28:43 -0500 |
commit | 7c0990c7ee988aa193abbb7da3faeb9279146dbf (patch) | |
tree | 785708206467f03cf07c72dae65f56531bfd7449 /kernel/exit.c | |
parent | d194139c18edb7dae45e159a24f2aa72091033b8 (diff) |
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 c7422ca92038..9a213474f54a 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -1037,8 +1037,6 @@ NORET_TYPE void do_exit(long code) | |||
1037 | * task into the wait for ever nirwana as well. | 1037 | * task into the wait for ever nirwana as well. |
1038 | */ | 1038 | */ |
1039 | tsk->flags |= PF_EXITPIDONE; | 1039 | tsk->flags |= PF_EXITPIDONE; |
1040 | if (tsk->io_context) | ||
1041 | exit_io_context(); | ||
1042 | set_current_state(TASK_UNINTERRUPTIBLE); | 1040 | set_current_state(TASK_UNINTERRUPTIBLE); |
1043 | schedule(); | 1041 | schedule(); |
1044 | } | 1042 | } |