]> www.infradead.org Git - users/hch/block.git/commit
io_uring/rsrc: remove redundant __set_current_state() post schedule()
authorJens Axboe <axboe@kernel.dk>
Sat, 15 Jun 2024 00:34:50 +0000 (18:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Jun 2024 20:54:55 +0000 (14:54 -0600)
commit11d194669271642a5d1bfff6c8011478309e7849
tree8f2ad5888b2d155ac4200a3c5b7424a41f2916a6
parent3474d1b93f897ab33ce160e759afd47d5f412de4
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: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c