projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb3d1a3
)
NFSv4.1: Don't recheck delegations that have already been checked
author
Trond Myklebust
<
[email protected]
>
Thu, 22 Sep 2016 17:39:01 +0000
(13:39 -0400)
committer
Anna Schumaker
<
[email protected]
>
Tue, 27 Sep 2016 18:33:55 +0000
(14:33 -0400)
Ensure we don't spam the server with test_stateid() calls for
delegations that have already been checked.
Signed-off-by: Trond Myklebust <
[email protected]
>
Tested-by: Oleg Drokin <
[email protected]
>
Signed-off-by: Anna Schumaker <
[email protected]
>
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index 083786aad83ce4161ef0fa384f75bf0cee662d47..dfa46e49e3563e6c4331fa3ac3767eaa6230b72f 100644
(file)
--- a/
fs/nfs/nfs4proc.c
+++ b/
fs/nfs/nfs4proc.c
@@
-2459,6
+2459,11
@@
static void nfs41_check_delegation_stateid(struct nfs4_state *state)
return;
}
+ if (!test_and_clear_bit(NFS_DELEGATION_TEST_EXPIRED, &delegation->flags)) {
+ rcu_read_unlock();
+ return;
+ }
+
cred = get_rpccred(delegation->cred);
rcu_read_unlock();
status = nfs41_test_and_free_expired_stateid(server, &stateid, cred);