diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-06-15 16:47:57 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-15 15:44:34 -0600 |
commit | 3c19966d3710dbe5a44658c532052f11d797aecb (patch) | |
tree | 8c89977de6f8f1ec044ab5ba763b294b7813def7 /drivers/watchdog/sama5d4_wdt.c | |
parent | 10c669040e9b3538e1732c8d40729636b17ce9dd (diff) |
io_uring: shove more drain bits out of hot path
Place all drain_next logic into io_drain_req(), so it's never executed
if there was no drained requests before. The only thing we need is to
set ->drain_active if we see a request with IOSQE_IO_DRAIN, do that in
io_init_req() where flags are definitely in registers.
Also, all drain-related code is encapsulated in io_drain_req(), makes it
cleaner.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/68bf4f7395ddaafbf1a26bd97b57d57d45a9f900.1623772051.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/watchdog/sama5d4_wdt.c')
0 files changed, 0 insertions, 0 deletions