]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-darwin-dont-assert-on-lock-state-in-remove-20071219
authorDerrick Brashear <shadow@dementia.org>
Wed, 19 Dec 2007 20:59:48 +0000 (20:59 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 19 Dec 2007 20:59:48 +0000 (20:59 +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

(cherry picked from commit f54187bfc59797fe955e779d432d155ab3792022)

src/afs/VNOPS/afs_vnop_remove.c

index b222aa13618874cc04a5d309314bb563d37118ce..8660c978a01fc759a1ff1228e5c081bb82f911d9 100644 (file)
@@ -415,7 +415,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;
 }