Nick Piggin writes:
> David Howells wrote:
> >>- put_task_struct(tsk);
> >>+ task_unlock(tsk);
> > > > > > Ummm... that doesn't look right.
> > > > > >>- get_task_struct(tsk);
> > > > > > This is necessary to stop someone deallocating the task structure, can the
> > task structure be deallocated whilst locked?
> > > > Ooh maybe it can. Should that be a read_lock of the tasklist lock then?
For 2.4 kernels, use get_task_struct() and free_task_struct() [not put]
for locking and unlocking a task.