[OpenAFS] Callback/Cache Issues with 1.3.82 on FC3
Jason McCormick
jasonmc@cert.org
Tue, 03 May 2005 09:19:30 -0400
--==========FC113D84CCADB27B7D08==========
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--On Tuesday, May 03, 2005 09:10:35 AM +0200 Stephan Wiesand
<Stephan.Wiesand@desy.de> wrote:
> I'm seeing this as well on an RHEL4 respin, kernel 2.6.9-5.0.5.EL:
Try the attached patch. It seems to be working for me, at least after
minimal testing. YMMV.
--
Jason McCormick <jasonmc@cert.org>
CERT Infrastructure Team
--==========FC113D84CCADB27B7D08==========
Content-Type: application/octet-stream; name="vnode-dentry-backout.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="vnode-dentry-backout.patch";
size=5548
LS0tIHNyYy9hZnMvTElOVVgvb3NpX3Zub2Rlb3BzLmMub3JpZwkyMDA1LTA0LTI1IDEwOjU1OjQ3
LjAwMDAwMDAwMCAtMDQwMAorKysgc3JjL2Fmcy9MSU5VWC9vc2lfdm5vZGVvcHMuYwkyMDA1LTA1
LTAyIDIxOjE1OjI0LjAwMDAwMDAwMCAtMDQwMApAQCAtMjcsNiArMjcsNyBAQAogI2luY2x1ZGUg
ImFmcy9zeXNpbmNsdWRlcy5oIgogI2luY2x1ZGUgImFmc2luY2x1ZGVzLmgiCiAjaW5jbHVkZSAi
YWZzL2Fmc19zdGF0cy5oIgorI2luY2x1ZGUgImFmcy9hZnNfb3NpZG5sYy5oIgogI2luY2x1ZGUg
ImgvbW0uaCIKICNpZmRlZiBIQVZFX01NX0lOTElORV9ICiAjaW5jbHVkZSAiaC9tbV9pbmxpbmUu
aCIKQEAgLTQyNSwxMyArNDI2LDYgQEAKIGV4dGVybiBpbnQgYWZzX3hpb2N0bChzdHJ1Y3QgaW5v
ZGUgKmlwLCBzdHJ1Y3QgZmlsZSAqZnAsIHVuc2lnbmVkIGludCBjb20sCiAJCSAgICAgIHVuc2ln
bmVkIGxvbmcg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