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