Forgot to commit the same change in UHCI:
Notify the finisher thread after canceling transfers. It was possible that freeing the allocated transfer resources would be delayed unnecessarily until some other transfer completed and woke up the finisher thread. Found by Salvatore Benedetto, thanks! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23714 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -634,6 +634,9 @@ UHCI::CancelQueuedTransfers(Pipe *pipe, bool force)
|
||||
}
|
||||
|
||||
Unlock();
|
||||
|
||||
// notify the finisher so it can clean up the canceled transfers
|
||||
release_sem_etc(fFinishTransfersSem, 1, B_DO_NOT_RESCHEDULE);
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user