]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: mark ->work uninitialised after cleanup
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 25 Jul 2020 11:41:58 +0000 (14:41 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 25 Jul 2020 15:47:44 +0000 (09:47 -0600)
commitb65e0dd6a2de050d3fc4c0db4969a245f4e7273e
treea5fda8de5085ef9c4750e852279d28ca43d141ba
parentf56040b81999871973d21f334b4657957422c90e
io_uring: mark ->work uninitialised after cleanup

Remove REQ_F_WORK_INITIALIZED after io_req_clean_work(). That's a cold
path but is safer for those using io_req_clean_work() out of
*dismantle_req()/*io_free(). And for the same reason zero work.fs

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