summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2024-09-09 15:06:36 +1000
committerChuck Lever <chuck.lever@oracle.com>2024-09-20 19:31:38 -0400
commit45bb63ed20e02ae146336412889fe5450316a84f (patch)
tree2d9513342284d397963cdfbddeeea566ef6c853f /tools/perf/scripts/python
parentbf92e5008b17f935a6de8b708551e02c2294121c (diff)
downloadkernel-45bb63ed20e02ae146336412889fe5450316a84f.tar.gz
nfsd: fix delegation_blocked() to block correctly for at least 30 seconds
The pair of bloom filtered used by delegation_blocked() was intended to block delegations on given filehandles for between 30 and 60 seconds. A new filehandle would be recorded in the "new" bit set. That would then be switch to the "old" bit set between 0 and 30 seconds later, and it would remain as the "old" bit set for 30 seconds. Unfortunately the code intended to clear the old bit set once it reached 30 seconds old, preparing it to be the next new bit set, instead cleared the *new* bit set before switching it to be the old bit set. This means that the "old" bit set is always empty and delegations are blocked between 0 and 30 seconds. This patch updates bd->new before clearing the set with that index, instead of afterwards. Reported-by: Olga Kornievskaia <okorniev@redhat.com> Cc: stable@vger.kernel.org Fixes: 6282cd565553 ("NFSD: Don't hand out delegations for 30 seconds after recalling them.") Signed-off-by: NeilBrown <neilb@suse.de> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
c513069f15be5de766026a4192998688ffff1'>MIPS: tracing: disable uprobe/kprobe on compact branch instructionsMarcin Nowakowski 2016-10-05MIPS: kernel: Audit and remove any unnecessary uses of module.hPaul Gortmaker 2016-07-05MIPS: inst.h: Rename cbcond{0,1}_op to pop{1,3}0_opPaul Burton 2016-07-05MIPS: inst.h: Rename b{eq,ne}zcji[al]c_op to pop{6,7}6_opPaul Burton 2016-05-28MIPS: Spelling fix lets -> let'sRalf Baechle 2016-05-13MIPS: Fix BC1{EQ,NE}Z return offset calculationPaul Burton