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