[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20111229.164458.285201500999170488.davem@davemloft.net>
Date: Thu, 29 Dec 2011 16:44:58 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: mst@...hat.com
Cc: rusty@...tcorp.com.au, netdev@...r.kernel.org, tj@...nel.org
Subject: Re: [PATCH] virtio_net: use non-reentrant workqueue.
From: "Michael S. Tsirkin" <mst@...hat.com>
Date: Thu, 29 Dec 2011 22:33:14 +0200
> On Thu, Dec 29, 2011 at 01:55:47PM +1030, Rusty Russell wrote:
>> Michael S. Tsirkin also noticed that we could run the refill work
>> multiple CPUs: if we kick off a refill on one CPU and then on another,
>> they would both manipulate the queue at the same time (they use
>> napi_disable to avoid racing against the receive handler itself).
>>
>> Tejun points out that this is what the WQ_NON_REENTRANT flag is for,
>> and that there is a convenient system kthread we can use.
>>
>> Signed-off-by: Rusty Russell <rusty@...tcorp.com.au>
>
> Acked-by: Michael S. Tsirkin <mst@...hat.com>
Applied.
--
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