Re: [PATCH] Fix tsk->exit_state usage (resend)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eugene Teo <eugeneteo@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>
Date: Tuesday, September 4, 2007 - 8:26 pm

Hi Eugene,

This already got merged into -mm, but ...


On Sun, 19 Aug 2007, Eugene Teo wrote:

... IMHO this change harms the readability of the code.



Here, for example, the code is /purposefully/ enumerating all the task
states, probably it makes sense to explicitly enumerate the exit states
as well?





Regarding above two changes -- agreed, we want to catch /any/ exiting task
state, so (!p->exit_state) is /correct/, but still, enumerating those
explicitly helps readability. And although it's unlikely, in the future,
we may have an exit_state value for which we may _not_ want to complain
(WARN or BUG) in this code. So I'd still vote to keep the code explicit
like it was ...


Satyam
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix tsk-&gt;exit_state usage (resend), Eugene Teo, (Sun Aug 19, 10:24 am)
Re: [PATCH] Fix tsk->exit_state usage (resend), Satyam Sharma, (Tue Sep 4, 8:26 pm)