git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
b072deb
)
darwin-dont-assert-on-lock-state-in-remove-20071219
author
Derrick Brashear
<shadow@dementia.org>
Wed, 19 Dec 2007 20:56:23 +0000 (20:56 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Wed, 19 Dec 2007 20:56:23 +0000 (20:56 +0000)
LICENSE IPL10
remove panic due to lock being grabbedin another thread can't be accurately
covered with this test on darwin, as e.g. proc_selfthread() is not in the KPI
src/afs/VNOPS/afs_vnop_remove.c
patch
|
blob
|
history
diff --git
a/src/afs/VNOPS/afs_vnop_remove.c
b/src/afs/VNOPS/afs_vnop_remove.c
index
385e46b
..
98ea57f
100644
(file)
--- a/
src/afs/VNOPS/afs_vnop_remove.c
+++ b/
src/afs/VNOPS/afs_vnop_remove.c
@@
-418,7
+418,11
@@
afs_remove(OSI_VC_ARG(adp), aname, acred)
code = afsremove(adp, tdc, tvc, aname, acred, &treq);
}
afs_PutFakeStat(&fakestate);
+#ifndef AFS_DARWIN80_ENV
+ /* we can't track by thread, it's not exported in the KPI; only do
+ this on !macos */
osi_Assert(!WriteLocked(&adp->lock) || (adp->lock.pid_writer != MyPidxx));
+#endif
return code;
}