mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
The existing sigio workaround implementation removes FDs from the poll when events are triggered, requiring users to re-add them via add_sigio_fd() after processing. This introduces a potential race condition between FD removal in write_sigio_thread() and next_poll update in __add_sigio_fd(), and is inefficient due to frequent FD removal and re-addition. Rewrite the implementation based on epoll and tgkill for improved efficiency and reliability. Signed-off-by: Tiwei Bie <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
13 lines
210 B
C
13 lines
210 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2002 Jeff Dike ([email protected])
|
|
*/
|
|
|
|
#ifndef __SIGIO_H__
|
|
#define __SIGIO_H__
|
|
|
|
extern void sigio_lock(void);
|
|
extern void sigio_unlock(void);
|
|
|
|
#endif
|