Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 11d19466 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/rsrc: remove redundant __set_current_state() post schedule()


We're guaranteed to be in a TASK_RUNNING state post schedule, so we
never need to set the state after that. While in there, remove the
other __set_current_state() as well, and just call finish_wait()
when we now we're going to break anyway. This is easier to grok than
manual __set_current_state() calls.

Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3474d1b9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment