OSDN Git Service

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)
commitb65c128f963df367a8adcfb08f5ecf8721052723
treeda76654c20d63c3f21e96bf5b14311cc561893af
parentd07f1e8a42614cc938c9c88866d4474a5a7fee31
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