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)
commit781070551c26def14784ce5ca14194d7ca234b04
treef46fa203252a392f518fd9edda109f460e7652d5
parent3b05e528cb9ef1c7b251705acca46d8deb80183c
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: c435ee34551e ("afs: Overhaul the callback handling")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/fsclient.c
fs/afs/yfsclient.c