diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c index c093d91..5948f15 100644 --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -412,6 +412,15 @@ static struct thread_status *_alloc_thread_status(const struct message_data *dat if (!(thread->device.name = dm_strdup(data->device_uuid))) goto_out; + /* + * Avoid repeatedly forcing a flush. + * Allow the disks to sleep, and accept "out-of-date" statistics. + * E.g. affects thin pools. Commits will occur every second already, + * if the pool state is changing. + */ + if (!dm_task_no_flush(thread->wait_task)) + goto_out; + /* runs ioctl and may register lvm2 pluging */ thread->processing = 1; thread->status = DM_THREAD_REGISTERING;