commit | cccd29bf0823bdfeb087b7661b06856b1b73bced | [log] [tgz] |
---|---|---|
author | Soheil Hassas Yeganeh <[email protected]> | Fri Dec 18 14:01:51 2020 -0800 |
committer | Linus Torvalds <[email protected]> | Sat Dec 19 11:18:37 2020 -0800 |
tree | a2f7132ce19a1e05899f4698fbfc59ca05538b11 | |
parent | 2efdaf7660c408d57721cc6dacb0167f866cb451 [diff] |
epoll: pull fatal signal checks into ep_send_events() To simplify the code, pull in checking the fatal signals into ep_send_events(). ep_send_events() is called only from ep_poll(). Note that, previously, we were always checking fatal events, but it is checked only if eavail is true. This should be fine because the goal of that check is to quickly return from epoll_wait() when there is a pending fatal signal. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Soheil Hassas Yeganeh <[email protected]> Suggested-by: Willem de Bruijn <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Reviewed-by: Khazhismel Kumykov <[email protected]> Cc: Guantao Liu <[email protected]> Cc: Linus Torvalds <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>