banan-os/kernel/kernel/Storage
Bananymous a1ab44d39f Kernel: Optimize disk reads to read multiple sectors at once
Old StorageDevice::read_sectors() read each sector separately if the
underlying disk had a disk cache. This patch allows multiple sectors to
be read even if the disk cache exists and contains some of the sectors.

Only sectors that could not be found from the disk cache are actually
read from the disk. This optimization is not done for writing, which
still will write each sector separately, if disk cache has no memory to
store new sectors. It would feel kind of unnecessary optimization as you
have greater problems if disk cache cannot allocate a single page.
2024-05-27 15:52:34 +03:00
..
ATA Kernel: Make all storage devices readable and writable 2024-05-27 13:41:55 +03:00
NVMe Kernel: NVMe Queue max simultaneous commands is dependent on arch 2024-03-26 01:45:43 +02:00
DiskCache.cpp Kernel: Remove now obsolete CriticalScope 2024-03-01 15:51:02 +02:00
Partition.cpp Kernel: Fix checking of partition boundaries on write 2024-02-22 13:31:12 +02:00
StorageDevice.cpp Kernel: Optimize disk reads to read multiple sectors at once 2024-05-27 15:52:34 +03:00