[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081212.222954.177408494.davem@davemloft.net>
Date: Fri, 12 Dec 2008 22:29:54 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: bhutchings@...arflare.com
Cc: netdev@...r.kernel.org, linux-net-drivers@...arflare.com
Subject: Re: [PATCH 25/33] sfc: Generate unique names for per-NIC workqueues
From: Ben Hutchings <bhutchings@...arflare.com>
Date: Sat, 13 Dec 2008 06:23:03 +0000
> David Miller wrote:
> > create_singlethread_workqueue() is going to reference this
> > name buffer on the stack for the life of the workqueue, but
> > once this function returns that reference will no longer
> > be valid.
>
> No, it's copied into the "comm" field of task_struct.
Hmmm...
create_singlethread_workqueue(name...
--> __create_workqueue(name...
--> __create_workqueue_key(name...
which goes:
wq->cpu_wq = alloc_percpu(struct cpu_workqueue_struct);
...
wq->name = name;
Which looks like a dynamic memory assumption to me.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists