From: Chen Gang <gang.chen@asianux.com>
To: "Arve Hjønnevåg" <arve@android.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
Dan Carpenter <dan.carpenter@oracle.com>,
Al Viro <viro@zeniv.linux.org.uk>,
Mirsal Ennaime <mirsal@mirsal.fr>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Staging: Android: looping issue, need break when get value firstly.
Date: Sat, 06 Apr 2013 17:47:24 +0800 [thread overview]
Message-ID: <515FEF2C.4080705@asianux.com> (raw)
In-Reply-To: <CAMP5Xgd=wVrDVCc84L2kMk9ADy7avokB6D=4+kdAm8jF+NLVyg@mail.gmail.com>
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
next prev parent reply other threads:[~2013-04-06 9:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <515E85C5.7010706@asianux.com>
2013-04-05 22:01 ` [PATCH] Staging: Android: looping issue, need break when get value firstly Greg KH
2013-04-05 23:48 ` Arve Hjønnevåg
2013-04-06 5:05 ` Chen Gang
2013-04-06 5:43 ` Chen Gang
2013-04-06 5:57 ` Greg KH
2013-04-06 7:28 ` Chen Gang
2013-04-06 9:47 ` Chen Gang [this message]
2013-04-06 5:13 ` Chen Gang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=515FEF2C.4080705@asianux.com \
--to=gang.chen@asianux.com \
--cc=arve@android.com \
--cc=dan.carpenter@oracle.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mirsal@mirsal.fr \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox