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)
commitab0b6451db2a8ed630b89ef3826b8ea994149444
tree5f4fb2ad84217af240415ad0b07cae8837e1f4e4
parentcbdcb4357c000861b77369c34e110fa893d23607
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