lkml.org 
[lkml]   [2004]   [Jun]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 16 Jun 2004 19:04:31 +1000
FromNick Piggin <>
SubjectRe: [2.4] build error with latest BK
Mikael Pettersson wrote:
> 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.> 

Sorry I'm an idiot. I'm sure Marcelo has already fixed it.
Just simply replace put_task_struct with free_task_struct.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [from the cache]
©2003-2008