From da9044cff966736bc064166a7136c94c0bfc1e5f Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 11 Oct 2011 14:03:29 -0400 Subject: [PATCH] ukernel: don't enforce thread lockers in remove vop we enforce locking by pid. when we are ukernel, MyPidXX is stupid. don't bother. Change-Id: Iddefd5d63edd6cc35a3c8112cb2cfbf3d47031aa Reviewed-on: http://gerrit.openafs.org/5597 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/VNOPS/afs_vnop_remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/VNOPS/afs_vnop_remove.c b/src/afs/VNOPS/afs_vnop_remove.c index d904bbe9f7..cda6f8e9ce 100644 --- a/src/afs/VNOPS/afs_vnop_remove.c +++ b/src/afs/VNOPS/afs_vnop_remove.c @@ -381,7 +381,7 @@ afs_remove(OSI_VC_DECL(adp), char *aname, afs_ucred_t *acred) } done: afs_PutFakeStat(&fakestate); -#ifndef AFS_DARWIN80_ENV +#if !defined(AFS_DARWIN80_ENV) && !defined(UKERNEL) /* 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));