]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/rw: ensure kiocb_end_write() is always called
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Oct 2022 15:06:23 +0000 (09:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Oct 2022 22:30:56 +0000 (16:30 -0600)
commit6e7f6b53caabb8a66fd95763820ba0b91d5ef962
treeaf0cba54438baa2191afab4c1d132f78cd963b67
parentbb3e2686d64cee4e5df35343f310dd175213e8d9
io_uring/rw: ensure kiocb_end_write() is always called

A previous commit moved the notifications and end-write handling, but
it is now missing a few spots where we also want to call both of those.
Without that, we can potentially be missing file notifications, and
more importantly, have an imbalance in the super_block writers sem
accounting.

Fixes: 822ef61e2cbb ("io_uring/rw: defer fsnotify calls to task context")
Reported-by: Dave Chinner <david@fromorbit.com>
Link: https://lore.kernel.org/all/20221010050319.GC2703033@dread.disaster.area/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c