]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix calculation of callback expiry time
authorDavid Howells <dhowells@redhat.com>
Thu, 9 May 2019 16:56:53 +0000 (17:56 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 May 2019 15:25:21 +0000 (16:25 +0100)
commitecc233e31806f74896bc9426121189ae618f9466
treef46fa203252a392f518fd9edda109f460e7652d5
parentc15da8e11f3e345761695701caf45ef0ff33769c
afs: Fix calculation of callback expiry time

Fix the calculation of the expiry time of a callback promise, as obtained
from operations like FS.FetchStatus and FS.FetchData.

The time should be based on the timestamp of the first DATA packet in the
reply and the calculation needs to turn the ktime_t timestamp into a
time64_t.

Fixes: e2b940e98c70 ("afs: Overhaul the callback handling")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/fsclient.c
fs/afs/yfsclient.c