mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
linux-remove-hazardous-trace-events-20020111
use of osi_Sleep in tracing code makes this dangerous.
This commit is contained in:
parent
259bf2a7d4
commit
2972ad04f1
@ -224,11 +224,6 @@ void afs_osi_Sleep(char *event)
|
||||
seq = evp->seq;
|
||||
|
||||
while (seq == evp->seq) {
|
||||
afs_Trace4(afs_iclSetp, CM_TRACE_SLEEP,
|
||||
ICL_TYPE_POINTER, evp,
|
||||
ICL_TYPE_INT32, 0/*count*/,
|
||||
ICL_TYPE_INT32, seq,
|
||||
ICL_TYPE_INT32, evp->seq);
|
||||
AFS_ASSERT_GLOCK();
|
||||
AFS_GUNLOCK();
|
||||
interruptible_sleep_on(&evp->cond);
|
||||
@ -285,9 +280,6 @@ void afs_osi_Wakeup(char *event)
|
||||
|
||||
if (evp->refcount > 1) {
|
||||
evp->seq++;
|
||||
afs_Trace2(afs_iclSetp, CM_TRACE_WAKE,
|
||||
ICL_TYPE_POINTER, evp,
|
||||
ICL_TYPE_INT32, evp->seq);
|
||||
wake_up(&evp->cond);
|
||||
}
|
||||
relevent(evp);
|
||||
|
Loading…
Reference in New Issue
Block a user