]> 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)
commit108114fe08dd4591c5f6ba82349c56c7b144f845
treeba05bc0309f660d66acf188c6e25a1689109f2c0
parent435ab0a8ffefc19bc31614b79b5a6c9ba2957a65
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