Re: [PATCH V6 2/3] vhost_net: handle polling errors when setting backend

2013-01-24 Thread Michael S. Tsirkin
On Wed, Jan 16, 2013 at 11:44:37PM +0800, Jason Wang wrote: > Currently, the polling errors were ignored, which can lead following issues: > > - vhost remove itself unconditionally from waitqueue when stopping the poll, > this may crash the kernel since the previous attempt of starting may fail

[PATCH V6 2/3] vhost_net: handle polling errors when setting backend

2013-01-16 Thread Jason Wang
Currently, the polling errors were ignored, which can lead following issues: - vhost remove itself unconditionally from waitqueue when stopping the poll, this may crash the kernel since the previous attempt of starting may fail to add itself to the waitqueue - userspace may think the backend w