]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't skip file_end_write() on reissue
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 22 Mar 2021 01:45:59 +0000 (01:45 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:40:14 +0000 (07:40 -0600)
commit6fa98bccbfdb8ceca029bfb17f9cf48e8eebad3f
treeda76654c20d63c3f21e96bf5b14311cc561893af
parent583d1d589e8e6e926954c30f14b3bbd04059e76e
io_uring: don't skip file_end_write() on reissue

Don't miss to call kiocb_end_write() from __io_complete_rw() on reissue.
Shouldn't be much of a problem as the function actually does some work
only for ISREG, and NONBLOCK won't be reissued.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/32af9b77c5b874e1bee1a3c46396094bd969e577.1616366969.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c