* Eric W. Biederman <[email protected]> wrote: > I'm still wondering if we can move put_task_struct a little lower in > the logic in the places where it is called, so it isn't called under a > lock, or with preemption disabled. The only downside I see is that it > might convolute the logic into unreadability. well it's all a function of the task reaping logic: right now we in essence complete the reaping from the scheduler, via prev_state == TASK_DEAD. We cannot do it sooner because the task is still in use. I had one other implementation upstream some time ago, which was a single-slot cache for reaped tasks - but that uglified other codepaths because _something_ has to notice that the task has been unscheduled. Ingo - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: "Paul E. McKenney" <[email protected]>
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- References:
- 2.6.18-rt1
- From: Ingo Molnar <[email protected]>
- [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: Bill Huey (hui) <[email protected]>
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: Bill Huey (hui) <[email protected]>
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: Bill Huey (hui) <[email protected]>
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: Ingo Molnar <[email protected]>
- Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- From: [email protected] (Eric W. Biederman)
- 2.6.18-rt1
- Prev by Date: Re: Bad PTE VM: killing process hald-addon-keyb
- Next by Date: Re: [Patch] SCSI I/O statistics
- Previous by thread: Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- Next by thread: Re: [PATCH] move put_task_struct() reaping into a thread [Re: 2.6.18-rt1]
- Index(es):