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

2013-04-06 Thread Chen Gang
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

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

2013-04-06 Thread Chen Gang
On 2013年04月06日 13:57, Greg KH wrote: > On Sat, Apr 06, 2013 at 01:05:59PM +0800, Chen Gang wrote: >> > On 2013年04月06日 07:48, Arve Hjønnevåg wrote: >>> > > On Fri, Apr 5, 2013 at 3:01 PM, Greg KH >>> > > wrote: > > >> > On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: >>> > >>>

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

2013-04-06 Thread Chen Gang
On 2013年04月06日 13:57, Greg KH wrote: On Sat, Apr 06, 2013 at 01:05:59PM +0800, Chen Gang wrote: On 2013年04月06日 07:48, Arve Hjønnevåg wrote: On Fri, Apr 5, 2013 at 3:01 PM, Greg KH gre...@linuxfoundation.org wrote: On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote:

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

2013-04-06 Thread Chen Gang
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.

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

2013-04-05 Thread Greg KH
On Sat, Apr 06, 2013 at 01:05:59PM +0800, Chen Gang wrote: > On 2013年04月06日 07:48, Arve Hjønnevåg wrote: > > On Fri, Apr 5, 2013 at 3:01 PM, Greg KH wrote: > >> > On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: > >>> >> > >>> >> need break when 'target_thread' get value, firstly. >

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

2013-04-05 Thread Chen Gang
On 2013年04月06日 13:05, Chen Gang wrote: > On 2013年04月06日 07:48, Arve Hjønnevåg 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

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

2013-04-05 Thread Chen Gang
On 2013年04月06日 06:01, Greg KH wrote: > On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: >> >> need break when 'target_thread' get value, firstly. >> >> 'tmp' is a stack (thread->transaction_stack), >> if 'proc' was the same between child node and parent node, >> the child

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

2013-04-05 Thread Chen Gang
On 2013年04月06日 07:48, Arve Hjønnevåg wrote: > On Fri, Apr 5, 2013 at 3:01 PM, Greg KH wrote: >> > On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: >>> >> >>> >> need break when 'target_thread' get value, firstly. >>> >> >>> >> 'tmp' is a stack (thread->transaction_stack), >>> >>

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

2013-04-05 Thread Arve Hjønnevåg
On Fri, Apr 5, 2013 at 3:01 PM, Greg KH wrote: > On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: >> >> need break when 'target_thread' get value, firstly. >> >> 'tmp' is a stack (thread->transaction_stack), >> if 'proc' was the same between child node and parent node, >>

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

2013-04-05 Thread Greg KH
On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: > > need break when 'target_thread' get value, firstly. > > 'tmp' is a stack (thread->transaction_stack), > if 'proc' was the same between child node and parent node, > the child would have higher priority than parent. Are

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

2013-04-05 Thread Greg KH
On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: need break when 'target_thread' get value, firstly. 'tmp' is a stack (thread-transaction_stack), if 'proc' was the same between child node and parent node, the child would have higher priority than parent. Are you

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

2013-04-05 Thread Arve Hjønnevåg
On Fri, Apr 5, 2013 at 3:01 PM, Greg KH gre...@linuxfoundation.org wrote: On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: need break when 'target_thread' get value, firstly. 'tmp' is a stack (thread-transaction_stack), if 'proc' was the same between child node and parent

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

2013-04-05 Thread Chen Gang
On 2013年04月06日 07:48, Arve Hjønnevåg wrote: On Fri, Apr 5, 2013 at 3:01 PM, Greg KH gre...@linuxfoundation.org wrote: On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: need break when 'target_thread' get value, firstly. 'tmp' is a stack (thread-transaction_stack),

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

2013-04-05 Thread Chen Gang
On 2013年04月06日 06:01, Greg KH wrote: On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: need break when 'target_thread' get value, firstly. 'tmp' is a stack (thread-transaction_stack), if 'proc' was the same between child node and parent node, the child would have

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

2013-04-05 Thread Chen Gang
On 2013年04月06日 13:05, Chen Gang wrote: On 2013年04月06日 07:48, Arve Hjønnevåg 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

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

2013-04-05 Thread Greg KH
On Sat, Apr 06, 2013 at 01:05:59PM +0800, Chen Gang wrote: On 2013年04月06日 07:48, Arve Hjønnevåg wrote: On Fri, Apr 5, 2013 at 3:01 PM, Greg KH gre...@linuxfoundation.org wrote: On Fri, Apr 05, 2013 at 04:05:25PM +0800, Chen Gang wrote: need break when 'target_thread' get value,