ukernel: don't enforce thread lockers in remove vop
authorDerrick Brashear <shadow@dementix.org>
Tue, 11 Oct 2011 18:03:29 +0000 (14:03 -0400)
committerDerrick Brashear <shadow@dementix.org>
Wed, 12 Oct 2011 13:03:04 +0000 (06:03 -0700)
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 <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>

src/afs/VNOPS/afs_vnop_remove.c

index d904bbe..cda6f8e 100644 (file)
@@ -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));