io-wq: split hashing and enqueueing
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 13 Mar 2020 21:31:04 +0000 (00:31 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 14 Mar 2020 23:02:28 +0000 (17:02 -0600)
commit8766dd516c535abf04491dca674d0ef6c95d814f
treee91788f7723397bc61cdde1a26418f3b32da533a
parentd78298e73a3443a3c1766fa89f5370f52a4efd94
io-wq: split hashing and enqueueing

It's a preparation patch removing io_wq_enqueue_hashed(), which
now should be done by io_wq_hash_work() + io_wq_enqueue().

Also, set hash value for dependant works, and do it as late as possible,
because req->file can be unavailable before. This hash will be ignored
by io-wq.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io-wq.h
fs/io_uring.c