]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix drain alloc fail return code
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Jul 2021 18:24:24 +0000 (19:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Jul 2021 18:49:32 +0000 (12:49 -0600)
commit5e2b55a114ff221a9af96e3cb081b4aa47867bbb
tree6b4390df735c05c08c72a0b2b07f36d15385a472
parent948f57f4863896aef637c3a8c9c2bcf78806d3b9
io_uring: fix drain alloc fail return code

After a recent change io_drain_req() started to fail requests with
result=0 in case of allocation failure, where it should be and have
been -ENOMEM.

Fixes: 1145a9a2c49fd ("io_uring: refactor io_req_defer()")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e068110ac4293e0c56cfc4d280d0f22b9303ec08.1625682153.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c