Re: [PATCH v2] freezer, sched: report the frozen task stat as 'D'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2024/12/14 0:43, Tejun Heo wrote:
> On Fri, Dec 13, 2024 at 11:03:32AM +0000, Chen Ridong wrote:
> ...
>> diff --git a/include/linux/sched.h b/include/linux/sched.h
>> index d380bffee2ef..dbe0cb97461f 100644
>> --- a/include/linux/sched.h
>> +++ b/include/linux/sched.h
>> @@ -1630,8 +1630,9 @@ static inline unsigned int __task_state_index(unsigned int tsk_state,
>>  	 * We're lying here, but rather than expose a completely new task state
>>  	 * to userspace, we can make this appear as if the task has gone through
>>  	 * a regular rt_mutex_lock() call.
>> +	 * Report the frozen task uninterruptible.
>>  	 */
>> -	if (tsk_state & TASK_RTLOCK_WAIT)
>> +	if (tsk_state & TASK_RTLOCK_WAIT || tsk_state & TASK_FROZEN)
> 
> Can you please add ()'s so that it's if ((a & b) || (c & d))? Other than
> that,
> 
> Acked-by: Tejun Heo <tj@xxxxxxxxxx>
> 
> Thanks.
> 

Thanks, will update.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux