From 12528a82c68296e003358cca0c35d269973780cf Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 14:08:04 -0400 Subject: [PATCH] wrapper: remove poll wrapper --- lib/ringbuffer/ring_buffer_vfs.c | 2 -- lttng-abi.c | 3 --- wrapper/poll.h | 20 -------------------- 3 files changed, 25 deletions(-) delete mode 100644 wrapper/poll.h diff --git a/lib/ringbuffer/ring_buffer_vfs.c b/lib/ringbuffer/ring_buffer_vfs.c index af753b9b..5468d350 100644 --- a/lib/ringbuffer/ring_buffer_vfs.c +++ b/lib/ringbuffer/ring_buffer_vfs.c @@ -14,7 +14,6 @@ #include #include #include -#include #include 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); diff --git a/lttng-abi.c b/lttng-abi.c index 3be91fcf..724d4f42 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include @@ -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 index a97bb6b8..00000000 --- a/wrapper/poll.h +++ /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 - */ - -#ifndef _LTTNG_WRAPPER_POLL_H -#define _LTTNG_WRAPPER_POLL_H - -#include - -/* - * 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 */ -- 2.34.1