]> 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)
commit78f9210199d9d939a4b72e90f95bd4f203def691
tree9cc9f932c217021951719743663d9ff9b16ac43c
parent82dd41c3ffba54e8c40505fa867056537390857a
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: 5779ff9f7121 ("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