1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00
serenity/Kernel/Storage
Pankaj Raghav 0096eadf40 Kernel/NVMe: Redesign the tracking of requests in an NVMe Queue
There was a private variable named m_current_request which was used to
track a single request at a time. This guarantee is given by the block
layer where we wait on each IO. This design will break down in the
driver once the block layer removes that constraint.

Redesign the IO handling in a completely asynchronous way by maintaining
requests up to queue depth. NVMeIO struct is introduced to track an IO
submitted along with other information such whether the IO is still
being processed and an endio callback which will be called during the
end of a request.

A hashmap private variable is created which will key based on the
command id of a request with a value of NVMeIO. endio handler will come
in handy if we are doing a sync request and we want to wake up the wait
queue during the end.

This change also simplified the code by removing some special condition
in submit_sqe function, etc that were marked as FIXME for a long time.
2023-04-05 12:45:27 +02:00
..
ATA Kernel: Refactor AHCIController to propagate more errors 2023-03-16 09:55:15 +01:00
NVMe Kernel/NVMe: Redesign the tracking of requests in an NVMe Queue 2023-04-05 12:45:27 +02:00
SD Kernel: Add support for SD host controllers on the PCI bus 2023-04-02 12:43:17 -06:00
DiskPartition.cpp Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
DiskPartition.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
StorageController.cpp Kernel/Storage: Introduce new boot device addressing modes 2022-08-30 00:50:15 +01:00
StorageController.h Kernel: Propagate errors in StorageController reset() and shutdown() 2023-03-16 09:55:15 +01:00
StorageDevice.cpp Revert "Revert "Kernel/Storage: Remove the ramdisk implementation"" 2023-03-25 16:50:36 +00:00
StorageDevice.h Revert "Revert "Kernel/Storage: Remove the ramdisk implementation"" 2023-03-25 16:50:36 +00:00
StorageManagement.cpp Kernel: Stop using *LockRefPtr for FileSystem pointers 2023-04-04 10:33:42 +02:00
StorageManagement.h Kernel: Stop using *LockRefPtr for FileSystem pointers 2023-04-04 10:33:42 +02:00