]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita23923f7be5dd08ab6fddc0df60fbce094b696f2
tree9cc9f932c217021951719743663d9ff9b16ac43c
parent6cfc4d014aabae2733302b0dc6680d4b5f9e6cae
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: 84f4385f1eb6 ("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