From: eag0628@gmail.com (Lai Jiangshan)
Subject: [lttng-dev] Query on the rculist
Date: Tue, 22 Jan 2013 22:24:09 +0800 [thread overview]
Message-ID: <50FEA109.6060404@gmail.com> (raw)
In-Reply-To: <20130121141645.GB31140@Krystal>
? 2013/1/21 22:16, Mathieu Desnoyers ??:
> * Liu Yuan (namei.unix at gmail.com) wrote:
>> Hi List,
>>
>> I noticed that there are just few functions suffixed with rcu for
>> rculist. And from the source of Linux kernel rculist, I came up with
>> some comments saying that list_empty_rcu() can be simply achieved by
>> calling list_empty(). Is this true to urcu too? My questions is, are
>> following equivalents true?
>>
>> list_empty_rcu -> list_empty
>
> Yes.
>
>> list_del_init_rcu -> list_del_init
>
> No.
Add a trivial comment.
There is no list_del_init_rcu(), "init" hurts "rcu".
If you need a re-initialized object after deletion, you should use
synchronzie_rcu():
list_del_rcu();
synchronize_rcu();
CDS_INIT_LIST_HEAD();
>
>>
>> If there are more equivalents, please show light on it.
>
> I will prepare a patch to extend and document the list and rculist APIs.
> Your feedback is welcome.
>
> Thanks!
>
> Mathieu
>
>>
>> Thanks,
>> Yuan
>
next prev parent reply other threads:[~2013-01-22 14:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-21 2:01 Liu Yuan
2013-01-21 14:16 ` Mathieu Desnoyers
2013-01-22 14:24 ` Lai Jiangshan [this message]
2013-01-24 5:22 ` Liu Yuan
2013-01-24 17:04 ` Mathieu Desnoyers
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=50FEA109.6060404@gmail.com \
--to=eag0628@gmail.com \
/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