[ovs-dev] [urcu-fixes 3/4] ovs-thread: Make caller provide thread name when creating a thread.
Alex Wang
alexw at nicira.com
Mon Apr 28 18:48:34 UTC 2014
This is helpful, just two comments,
On Mon, Apr 28, 2014 at 9:06 AM, Ben Pfaff <blp at nicira.com> wrote:
> This patch is a prerequisite for making RCU report the name of a thread
> that is blocking RCU synchronization,
> *because the easiest way to do that gets the name of the thread in
> ovsrcu_quiesce_end(), *which is called before
> the thread function is called (so it won't get a name set within the thread
> function itself).
>
Just curious, should we change the sentence in bold to "to do that is to
get ..."
do we still need the ovsrcu_quiesce_end() here?
--- a/lib/ovs-thread.c
+++ b/lib/ovs-thread.c
@@ -293,7 +293,6 @@ ovs_thread_create(const char *name, void *(*start)(void
*), void *arg)
forbid_forking("multiple threads exist");
multithreaded = true;
- ovsrcu_quiesce_end();
aux = xmalloc(sizeof *aux);
aux->start = start;
Acked-by: Alex Wang <alexw at nicira.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20140428/269ab007/attachment-0005.html>
More information about the dev
mailing list