Bump minimum kernel version to 2.6.30 to use EFD_SEMAPHORE
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.cpp
index da4f8a4b2ad515f601b90435fe696acde129beb0..909ccbff2cc1b6f36eba822957bdfec10a11a957 100644 (file)
@@ -3137,18 +3137,6 @@ int pop_cmd_queue(struct notification_thread_handle *handle,
                goto error_unlock;
        }
 
-       /* Simulate behaviour of EFD_SEMAPHORE for older kernels. */
-       counter -= 1;
-       if (counter != 0) {
-               ret = lttng_write(handle->cmd_queue.event_fd, &counter,
-                               sizeof(counter));
-               if (ret != sizeof(counter)) {
-                       PERROR("Failed to write back to event_fd for EFD_SEMAPHORE emulation");
-                       ret = -1;
-                       goto error_unlock;
-               }
-       }
-
        *cmd = cds_list_first_entry(&handle->cmd_queue.list,
                        struct notification_thread_command, cmd_list_node);
        cds_list_del(&((*cmd)->cmd_list_node));
This page took 0.023083 seconds and 4 git commands to generate.