io_uring: ensure that fsnotify is always called
authorJens Axboe <axboe@kernel.dk>
Sun, 20 Mar 2022 19:08:38 +0000 (13:08 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:34:57 +0000 (16:34 +0200)
commitdf1ec53252d5b5b26ea49e30438741c9a6d89857
treebf8a340ebecda22eeb55e21c96064c558edafb92
parent5c82c94b0be70f1c56c8ef5c6cdd73d711e98066
io_uring: ensure that fsnotify is always called

[ 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>
fs/io_uring.c