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>
Tue, 10 Aug 2021 23:51:15 +0000 (17:51 -0600)
commitc43287aa4fe1c8465bf72fe2bf188e06fa4e340e
treeb5e18cd02f9c5beab3fd8fab5d344ad91c9701c5
parent96f638c0e22accdd963cf79fee200ccd88e5c281
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