io_uring: use correct "is IO worker" helper
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Nov 2019 14:56:39 +0000 (07:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Nov 2019 15:02:26 +0000 (08:02 -0700)
commit960e432dfa5927892a9b170d14de874597b84849
tree5f349118f3b4de3fcc35836f392f8ffbec440cca
parent76a46e066e2d93bd333599d1c84c605c2c4cc909
io_uring: use correct "is IO worker" helper

Since we switched to io-wq, the dependent link optimization for when to
pass back work inline has been broken. Fix this by providing a suitable
io-wq helper for io_uring to use to detect when to do this.

Fixes: 561fb04a6a22 ("io_uring: replace workqueue usage with io-wq")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.h
fs/io_uring.c