[Devel] [PATCH rh7 3/3] ve: Use wait_on_bit() to wait attaching is completed

Kirill Tkhai ktkhai at odin.com
Wed Oct 28 02:54:31 PDT 2015


On 27.10.2015 19:22, Vladimir Davydov wrote:
> On Fri, Oct 16, 2015 at 07:25:15PM +0300, Kirill Tkhai wrote:
>> wait_on_bit() prevents excess schedule_timeout() looping
>> (i.e. cpu time waisting and possible livelocks)
> 
> I think a completion would suit the purpose much better.
> 

There is already bits in task_ve_nr_works while completion
requires more of memory. The readability is near the similar.

I don't think it's better.



More information about the Devel mailing list