]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Calculate lock extend timer from set/extend reply reception
authorDavid Howells <dhowells@redhat.com>
Thu, 25 Apr 2019 13:26:50 +0000 (14:26 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 25 Apr 2019 13:26:50 +0000 (14:26 +0100)
commit592959e96bb9fc1485442b29233c80ae744b1058
treeba05bc0309f660d66acf188c6e25a1689109f2c0
parente81ef8b91d7aa6cabfc59f1b2d0c68972552433b
afs: Calculate lock extend timer from set/extend reply reception

Record the timestamp on the first reply DATA packet received in response to
a set- or extend-lock operation, then use this to calculate the time
remaining till the lock expires rather than using whatever time the
requesting process wakes up and finishes processing the operation as a
base.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/flock.c
fs/afs/fsclient.c
fs/afs/internal.h
fs/afs/yfsclient.c