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 <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Derrick Brashear 2011-10-11 14:03:29 -04:00
parent 75179d50ea
commit da9044cff9

View File

@ -381,7 +381,7 @@ afs_remove(OSI_VC_DECL(adp), char *aname, afs_ucred_t *acred)
} }
done: done:
afs_PutFakeStat(&fakestate); 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 /* we can't track by thread, it's not exported in the KPI; only do
this on !macos */ this on !macos */
osi_Assert(!WriteLocked(&adp->lock) || (adp->lock.pid_writer != MyPidxx)); osi_Assert(!WriteLocked(&adp->lock) || (adp->lock.pid_writer != MyPidxx));