diff options
author | Soheil Hassas Yeganeh <[email protected]> | 2020-12-18 14:01:48 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-12-19 11:18:37 -0800 |
commit | 2efdaf7660c408d57721cc6dacb0167f866cb451 (patch) | |
tree | f408a18b19361393572b8a59525bf97826fd08f9 /scripts/gdb/linux/timerlist.py | |
parent | 289caf5d8f6c61c6d2b7fd752a7f483cd153f182 (diff) |
epoll: simplify signal handling
Check signals before locking ep->lock, and immediately return -EINTR if
there is any signal pending.
This saves a few loads, stores, and branches from the hot path and
simplifies the loop structure for follow up patches.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Soheil Hassas Yeganeh <[email protected]>
Suggested-by: Linus Torvalds <[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]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions