fuse: update attr_version counter on fuse_notify_inval_inode()
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 19 May 2020 12:50:38 +0000 (14:50 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 19 May 2020 12:50:38 +0000 (14:50 +0200)
commit5ddd9ced9aef6cfa76af27d384c17c9e2d610ce8
tree827d10adb9e7f066d37fd33438496da8aa08441d
parent32f98877c57bee6bc27f443a96f49678a2cd6a50
fuse: update attr_version counter on fuse_notify_inval_inode()

A GETATTR request can race with FUSE_NOTIFY_INVAL_INODE, resulting in the
attribute cache being updated with stale information after the
invalidation.

Fix this by bumping the attribute version in fuse_reverse_inval_inode().

Reported-by: Krzysztof Rusek <rusek@9livesdata.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/inode.c