Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

poll: kill poll_does_not_wait()

It no longer has users.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20250107162743.GA18947@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Oleg Nesterov and committed by
Christian Brauner
f005bf18 b2849867

+3 -13
+3 -13
include/linux/poll.h
··· 25 25 26 26 struct poll_table_struct; 27 27 28 - /* 28 + /* 29 29 * structures and helpers for f_op->poll implementations 30 30 */ 31 31 typedef void (*poll_queue_proc)(struct file *, wait_queue_head_t *, struct poll_table_struct *); 32 32 33 33 /* 34 - * Do not touch the structure directly, use the access functions 35 - * poll_does_not_wait() and poll_requested_events() instead. 34 + * Do not touch the structure directly, use the access function 35 + * poll_requested_events() instead. 36 36 */ 37 37 typedef struct poll_table_struct { 38 38 poll_queue_proc _qproc; ··· 51 51 */ 52 52 smp_mb(); 53 53 } 54 - } 55 - 56 - /* 57 - * Return true if it is guaranteed that poll will not wait. This is the case 58 - * if the poll() of another file descriptor in the set got an event, so there 59 - * is no need for waiting. 60 - */ 61 - static inline bool poll_does_not_wait(const poll_table *p) 62 - { 63 - return p == NULL || p->_qproc == NULL; 64 54 } 65 55 66 56 /*