Re: [PATCH] Staging: Android: looping issue, need break when getvalue firstly.

From: Chen Gang
Date: Sat Apr 06 2013 - 05:48:16 EST


On 2013å04æ06æ 07:48, ï wrote:
> Theoretically this should not change the behavior. The purpose of this
> code it to make sure only thread per process is part of a transaction
> stack, so if it finds more than one transaction with a matching
> process, they should all point to the same thread object. I think a
> better change description is needed though.

after reading code again, I think:
in our condition, one proc can be related with multiple threads.

can you provide more information for:
why can we be sure "they should all point to the same thread object" ?

result:
if it is an issue (can not be sure all point to the same thread object)
it seems need additional considerations for it.
what my fix seems incorrect, either.
(for its transaction processing, it seems not should obey stack rules).

else (can be sure)
my patch seems minor (only can increasing a little performance).
it is not quite suitable to spend much time to test a minor patch !!

so whether what will happen, my patch seems obsoleted !!

:-(


--
Chen Gang

Asianux Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/