commit | 6b951560f4f144d83d740b1333f4822ec82e7650 | [log] [tgz] |
---|---|---|
author | noah <goldstein.n@wustl.edu> | Wed Dec 16 15:48:18 2020 -0500 |
committer | noah <goldstein.n@wustl.edu> | Thu Dec 17 11:09:13 2020 -0500 |
tree | 126102fa1c90522740018b7d9e9bbc7a668f22c8 | |
parent | bd0befa63da9724adb61c6e3fbfb56d91c8537c0 [diff] |
Added __builtin_expect macros and wrapped IORING_ENTER_SQ_WAKEUP branch If heavy IO load then kernel thread will only very rarely need to be woken up. Only case where this condition is common is if timeout expected between IO calls in which case should be using GETEVENTS. This will avoid the compiler from optimizing the wakeup branch Signed-off-by: Noah <goldstein.w.n@gmail.com>