Re: [PATCH] vhost_net: remove tx polling state

2013-04-11 Thread David Miller
From: "Michael S. Tsirkin" Date: Thu, 11 Apr 2013 10:24:30 +0300 > On Thu, Apr 11, 2013 at 02:50:48PM +0800, Jason Wang wrote: >> After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle >> polling >> errors when setting backend), we in fact track the polling state through >> pol

Re: [PATCH] vhost_net: remove tx polling state

2013-04-11 Thread Michael S. Tsirkin
On Thu, Apr 11, 2013 at 02:50:48PM +0800, Jason Wang wrote: > After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle > polling > errors when setting backend), we in fact track the polling state through > poll->wqh, so there's no need to duplicate the work with an extra > vhost_ne

[PATCH] vhost_net: remove tx polling state

2013-04-11 Thread Jason Wang
After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle polling errors when setting backend), we in fact track the polling state through poll->wqh, so there's no need to duplicate the work with an extra vhost_net_polling_state. So this patch removes this and make the code simpler.

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Michael S. Tsirkin
On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: > After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle > polling > errors when setting backend), we in fact track the polling state through > poll->wqh, so there's no need to duplicate the work with an extra > vhost_ne

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Jason Wang
On 03/11/2013 04:29 PM, Michael S. Tsirkin wrote: > On Mon, Mar 11, 2013 at 03:09:10PM +0800, Jason Wang wrote: >> On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote: >>> On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net:

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Michael S. Tsirkin
On Mon, Mar 11, 2013 at 03:09:10PM +0800, Jason Wang wrote: > On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote: > > On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: > >> After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle > >> polling > >> errors when setting backen

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Michael S. Tsirkin
On Mon, Mar 11, 2013 at 03:33:16PM +0800, Jason Wang wrote: > On 03/11/2013 03:09 PM, Jason Wang wrote: > > On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote: > >> On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: > >>> After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: hand

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Jason Wang
On 03/11/2013 03:09 PM, Jason Wang wrote: > On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote: >> On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: >>> After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle >>> polling >>> errors when setting backend), we in fact track t

Re: [PATCH] vhost_net: remove tx polling state

2013-03-11 Thread Jason Wang
On 03/11/2013 12:50 AM, Michael S. Tsirkin wrote: > On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: >> After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle >> polling >> errors when setting backend), we in fact track the polling state through >> poll->wqh, so there'

Re: [PATCH] vhost_net: remove tx polling state

2013-03-10 Thread Michael S. Tsirkin
On Thu, Mar 07, 2013 at 12:31:56PM +0800, Jason Wang wrote: > After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle > polling > errors when setting backend), we in fact track the polling state through > poll->wqh, so there's no need to duplicate the work with an extra > vhost_ne

Re: [PATCH] vhost_net: remove tx polling state

2013-03-07 Thread David Miller
From: Jason Wang Date: Thu, 7 Mar 2013 12:31:56 +0800 > After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle > polling > errors when setting backend), we in fact track the polling state through > poll->wqh, so there's no need to duplicate the work with an extra > vhost_net_p

[PATCH] vhost_net: remove tx polling state

2013-03-06 Thread Jason Wang
After commit 2b8b328b61c799957a456a5a8dab8cc7dea68575 (vhost_net: handle polling errors when setting backend), we in fact track the polling state through poll->wqh, so there's no need to duplicate the work with an extra vhost_net_polling_state. So this patch removes this and make the code simpler.