]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25b5f413a9d4d298a4ac740ca8356f4a19b22e15
treea5fda8de5085ef9c4750e852279d28ca43d141ba
parent22a14b6b44c73038f9b9ee5b99815ef300061386
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