]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix whole-volume callback handling
authorDavid Howells <dhowells@redhat.com>
Sat, 12 May 2018 21:31:33 +0000 (22:31 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 14 May 2018 14:15:18 +0000 (15:15 +0100)
commitadb8720c7bee74d170abe4d9d46b880d3e8647dc
tree1e4fb0cacb40aff37e9f0177a772c6509631afec
parent1f3c62fd66855de1edb18a5eca06d4f3f31a3de7
afs: Fix whole-volume callback handling

It's possible for an AFS file server to issue a whole-volume notification
that callbacks on all the vnodes in the file have been broken.  This is
done for R/O and backup volumes (which don't have per-file callbacks) and
for things like a volume being taken offline.

Fix callback handling to detect whole-volume notifications, to track it
across operations and to check it during inode validation.

Fixes: f2ee1d2da2e8 ("afs: Overhaul the callback handling")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/callback.c
fs/afs/dir.c
fs/afs/file.c
fs/afs/flock.c
fs/afs/fsclient.c
fs/afs/inode.c
fs/afs/internal.h
fs/afs/security.c
fs/afs/super.c
fs/afs/write.c