vhost: fix log ctx signalling

The log eventfd signalling got put in dead code.
We didn't notice because qemu currently does polling
instead of eventfd select.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

+4 -3
+4 -3
drivers/vhost/vhost.c
··· 858 858 if (r < 0) 859 859 return r; 860 860 len -= l; 861 - if (!len) 861 + if (!len) { 862 + if (vq->log_ctx) 863 + eventfd_signal(vq->log_ctx, 1); 862 864 return 0; 865 + } 863 866 } 864 - if (vq->log_ctx) 865 - eventfd_signal(vq->log_ctx, 1); 866 867 /* Length written exceeds what we have stored. This is a bug. */ 867 868 BUG(); 868 869 return 0;