]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: ensure that fsnotify is always called
authorJens Axboe <axboe@kernel.dk>
Sun, 20 Mar 2022 19:08:38 +0000 (13:08 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Sep 2022 08:52:07 +0000 (10:52 +0200)
commit48a904e266acd2a17ed624f4a298c6f2b1d5edb4
treeba0b5727d6b467c35f309fd2f7f4b7d2c3ded864
parent171e5854ecf4e16a60b983266ce5441b21b3c046
io_uring: ensure that fsnotify is always called

BugLink: https://bugs.launchpad.net/bugs/1987451
[ Upstream commit f63cf5192fe3418ad5ae1a4412eba5694b145f79 ]

Ensure that we call fsnotify_modify() if we write a file, and that we
do fsnotify_access() if we read it. This enables anyone using inotify
on the file to get notified.

Ditto for fallocate, ensure that fsnotify_modify() is called.

Cc: stable@vger.kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/io_uring.c