mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
afs: Apply VLRU safety check for Linux too
This invariant should apply to all platforms, not just those with dynamic vcaches. Since this prevents an infinite loop if the list os corrupt or something, having this around everywhere seems useful. So, drop the check for afsd_dynamic_vcaches. Change-Id: I90e438eb33f40762346d1c5a7138ed127fdcdcc6 Reviewed-on: http://gerrit.openafs.org/8555 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
parent
bc6dd95016
commit
696db8667d
@ -716,7 +716,7 @@ afs_ShakeLooseVCaches(afs_int32 anumber)
|
||||
uq = QPrev(tq);
|
||||
if (tvc->f.states & CVFlushed) {
|
||||
refpanic("CVFlushed on VLRU");
|
||||
} else if (!afsd_dynamic_vcaches && i++ > afs_vcount) {
|
||||
} else if (i++ > afs_vcount) {
|
||||
refpanic("Found too many AFS vnodes on VLRU (VLRU cycle?)");
|
||||
} else if (QNext(uq) != tq) {
|
||||
refpanic("VLRU inconsistent");
|
||||
|
Loading…
Reference in New Issue
Block a user