Commit 7c0990c7ee988aa193abbb7da3faeb9279146dbf

Authored by Nikanth Karthikesan
Committed by Jens Axboe
1 parent d194139c18

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>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

... ... @@ -1037,8 +1037,6 @@
1037 1037 * task into the wait for ever nirwana as well.
1038 1038 */
1039 1039 tsk->flags |= PF_EXITPIDONE;
1040   - if (tsk->io_context)
1041   - exit_io_context();
1042 1040 set_current_state(TASK_UNINTERRUPTIBLE);
1043 1041 schedule();
1044 1042 }