]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: clean up io_kill_linked_timeout() locking
authorJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 14:43:15 +0000 (08:43 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 14:43:15 +0000 (08:43 -0600)
commit199222af6207fbc070595cf592e93dcda7e29d6a
tree5f4fb2ad84217af240415ad0b07cae8837e1f4e4
parent3410b089c617d8fc3fb563936ceb9933b3659b50
io_uring: clean up io_kill_linked_timeout() locking

Avoid jumping through hoops to silence unused variable warnings, and
also fix sparse rightfully complaining about the locking context:

fs/io_uring.c:1593:39: warning: context imbalance in 'io_kill_linked_timeout' - unexpected unlock

Provide the functional helper as __io_kill_linked_timeout(), and have
separate the locking from it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c