Skip to contentSkip to conversation

virtiofsd: fix eventfd_write failure message

PATCH In review Eryu Guan 3 participants 3 messages Dec 24, 2019 – Jan 3, 2020

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/1 virtiofsd: fix eventfd_write failure message

---
 tools/virtiofsd/fuse_virtio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/virtiofsd/fuse_virtio.c +1 -1
index 2ae38758567e..775f32bdaae2 100644
@@ -843,7 +843,7 @@ static void fv_queue_set_started(VuDev *dev, int qidx, bool started)
 
         /* Kill the thread */
         if (eventfd_write(ourqi->kill_fd, 1)) {
-            fuse_log(FUSE_LOG_ERR, "Eventfd_read for queue: %m\n");
+            fuse_log(FUSE_LOG_ERR, "Eventfd_write for queue: %m\n");
         }
         ret = pthread_join(ourqi->thread, NULL);
         if (ret) {
Signature · 1 line
2.14.4.44.g2045bb6
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · * Eryu Guan ([email protected]) wrote:
---
 tools/virtiofsd/fuse_virtio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/virtiofsd/fuse_virtio.c +1 -1
index 2ae38758567e..775f32bdaae2 100644
@@ -843,7 +843,7 @@ static void fv_queue_set_started(VuDev *dev, int qidx, bool started)
 
         /* Kill the thread */
         if (eventfd_write(ourqi->kill_fd, 1)) {
-            fuse_log(FUSE_LOG_ERR, "Eventfd_read for queue: %m\n");
+            fuse_log(FUSE_LOG_ERR, "Eventfd_write for queue: %m\n");
         }
         ret = pthread_join(ourqi->thread, NULL);
         if (ret) {
Signature · 1 line
2.14.4.44.g2045bb6

Thanks, merged into 'virtiofsd: Kill threads when queues are stopped'

Quoted 5 lines

_______________________________________________
Virtio-fs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virtio-fs

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK