mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 14:28:11 +00:00
Revert "Kernel: Implement an asynchronous device request stack"
This reverts commit 2fd5ce1eb0
.
This broke booting without SMP. (PR was #3921)
This commit is contained in:
parent
70eaadc1cd
commit
501cef2bd7
17 changed files with 245 additions and 803 deletions
|
@ -80,21 +80,4 @@ String Device::absolute_path(const FileDescription&) const
|
|||
return absolute_path();
|
||||
}
|
||||
|
||||
void Device::process_next_queued_request(Badge<AsyncDeviceRequest>, const AsyncDeviceRequest& completed_request)
|
||||
{
|
||||
AsyncDeviceRequest* next_request = nullptr;
|
||||
|
||||
{
|
||||
ScopedSpinLock lock(m_requests_lock);
|
||||
ASSERT(!m_requests.is_empty());
|
||||
ASSERT(m_requests.first().ptr() == &completed_request);
|
||||
m_requests.remove(m_requests.begin());
|
||||
if (!m_requests.is_empty())
|
||||
next_request = m_requests.first().ptr();
|
||||
}
|
||||
|
||||
if (next_request)
|
||||
next_request->start();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue