wrapper: remove poll wrapper
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 18:08:04 +0000 (14:08 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 18:09:24 +0000 (14:09 -0400)
lib/ringbuffer/ring_buffer_vfs.c
lttng-abi.c
wrapper/poll.h [deleted file]

index af753b9bc21a15d807d9eb882d39173406582717..5468d3502c6f23a080c9494db907186e2aa5b009 100644 (file)
@@ -14,7 +14,6 @@
 #include <wrapper/ringbuffer/backend.h>
 #include <wrapper/ringbuffer/frontend.h>
 #include <wrapper/ringbuffer/vfs.h>
-#include <wrapper/poll.h>
 #include <lttng-tracer.h>
 
 static int put_ulong(unsigned long val, unsigned long arg)
@@ -106,7 +105,6 @@ unsigned int lib_ring_buffer_poll(struct file *filp, poll_table *wait,
        int finalized, disabled;
 
        if (filp->f_mode & FMODE_READ) {
-               poll_wait_set_exclusive(wait);
                poll_wait(filp, &buf->read_wait, wait);
 
                finalized = lib_ring_buffer_is_finalized(config, buf);
index 3be91fcfaf48ade8c42bf228038e109184fafb45..724d4f428a412ac7d3f74a935ecf15e890bc720f 100644 (file)
@@ -34,7 +34,6 @@
 #include <wrapper/ringbuffer/vfs.h>
 #include <wrapper/ringbuffer/backend.h>
 #include <wrapper/ringbuffer/frontend.h>
-#include <wrapper/poll.h>
 #include <wrapper/file.h>
 #include <lttng-string-utils.h>
 #include <lttng-abi.h>
@@ -777,7 +776,6 @@ unsigned int lttng_metadata_ring_buffer_poll(struct file *filp,
        unsigned int mask = 0;
 
        if (filp->f_mode & FMODE_READ) {
-               poll_wait_set_exclusive(wait);
                poll_wait(filp, &stream->read_wait, wait);
 
                finalized = stream->finalized;
@@ -1505,7 +1503,6 @@ unsigned int lttng_channel_poll(struct file *file, poll_table *wait)
        unsigned int mask = 0;
 
        if (file->f_mode & FMODE_READ) {
-               poll_wait_set_exclusive(wait);
                poll_wait(file, channel->ops->get_hp_wait_queue(channel->chan),
                          wait);
 
diff --git a/wrapper/poll.h b/wrapper/poll.h
deleted file mode 100644 (file)
index a97bb6b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
- *
- * wrapper/poll.h
- *
- * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- */
-
-#ifndef _LTTNG_WRAPPER_POLL_H
-#define _LTTNG_WRAPPER_POLL_H
-
-#include <linux/poll.h>
-
-/*
- * Note: poll_wait_set_exclusive() is defined as no-op. Thundering herd
- * effect can be noticed with large number of consumer threads.
- */
-
-#define poll_wait_set_exclusive(poll_table)
-
-#endif /* _LTTNG_WRAPPER_POLL_H */
This page took 0.026441 seconds and 4 git commands to generate.