Re: kthread_exit and giant

From: Petri Helenius <pete_at_he.iki.fi>
Date: Mon, 5 May 2003 23:46:01 +0300
> 
> The kthread is supposed to acquire Giant before calling kthread_exit().
> Actually, my guess is that the ar kthread needs to acquire Giant for the
> lifetime of the thread.  I have an untested patch locally:
> 
I thought the lifetime of the thread is the duration of the rebuild process? Which
can be minutes to hours. Locking giant for that kind of time does not sound
right, so locking it just before thread exit sounds like the right thing to do, 
as long as the code othervise keeps critical sections locked.

Pete
Received on Mon May 05 2003 - 11:46:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:06 UTC