Re: Question on migrate_disabe/enable()

From: Peter Zijlstra
Date: Tue Jan 26 2021 - 13:06:20 EST


On Tue, Jan 26, 2021 at 02:12:45AM +0000, Zhang, Qiang wrote:
> Hello Peterz, tglx
>
> I have some questions about migrate_disabe/enable(), in the past
> migrate_disabe/enable() is replaced by preempt_disable/enable() in no
> RT system.
>
> And now migrate_disabe/enable() has its own implementation, I want to
> know in migrate_disabe/enable() critical area is blocking allowed?

Yes, obviously. Otherwise it would've been preempt_disable().

> If allowed, There's a blockage in migrate_disabe/enable() critical
> area, and this time if CPU going offline,offline time will be longer.
> Is this normal phenomenon?

Ofcourse.