io-wq: improve wq_list_add_tail()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 9 Aug 2021 12:04:07 +0000 (13:04 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Aug 2021 15:05:45 +0000 (09:05 -0600)
commit288c2c67a0e1a4aac858329bf1a66c878bbe5e33
tree21882cedaf99dae700ca7297f97d5037b3800374
parent7b072ec1130d6953a29231b6995f9d4f89e816de
io-wq: improve wq_list_add_tail()

Prepare nodes that we're going to add before actually linking them, it's
always safer and costs us nothing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f7e53f0c84c02ed6748c488ed0789b98f8cc6185.1628471125.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.h