mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:37:45 +00:00
Kernel: Merge NVME Queue complete_current_request implementations
Most of the actual logic is identical, with the only real difference being that one wraps it with an async work item. Merge the implementations to reduce duplications (which will also require the fixes in the next commits to only be done once).
This commit is contained in:
parent
4fbc701721
commit
a957907f4b
5 changed files with 40 additions and 72 deletions
|
@ -100,10 +100,11 @@ protected:
|
|||
}
|
||||
}
|
||||
|
||||
virtual void complete_current_request(u16 cmdid, u16 status);
|
||||
|
||||
private:
|
||||
bool cqe_available();
|
||||
void update_cqe_head();
|
||||
virtual void complete_current_request(u16 cmdid, u16 status) = 0;
|
||||
void update_cq_doorbell()
|
||||
{
|
||||
full_memory_barrier();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue