afs: Clear AFS_VNODE_CB_PROMISED if we detect callback expiry
authorDavid Howells <dhowells@redhat.com>
Thu, 9 May 2019 13:15:11 +0000 (14:15 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 May 2019 21:23:21 +0000 (22:23 +0100)
commit61c347ba551162edb1c6abfa60ce6907baf7a1af
tree9cc9f932c217021951719743663d9ff9b16ac43c
parentf642404a0436a50912c218009ccc7856d48d784c
afs: Clear AFS_VNODE_CB_PROMISED if we detect callback expiry

Fix afs_validate() to clear AFS_VNODE_CB_PROMISED on a vnode if we detect
any condition that causes the callback promise to be broken implicitly,
including server break (cb_s_break), volume break (cb_v_break) or callback
expiry.

Fixes: ae3b7361dc0e ("afs: Fix validation/callback interaction")
Reported-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/inode.c