From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Handle the block request queue

Handle the block request queue - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Handle the block request queue

- [Instructor] Let's talk about request, shall we? What do you think? What topics? Well, we're going to talk about block device requests about the idea that's how IO gets done. And then we'll talk about scheduling for IO. So recall, it's this block layer that makes requests to the driver, in the block layer, buffers blocks, the driver gets these requests on its request_queue. So this block layer is caching or blocking the data written to the disk. And the block layer then informs the driver, when it wants that data actually written out to disk. And because it's in that buffer area, if it's still there, when a process reads that block from a file, the driver doesn't even need to get involved, the block layer just takes it out of memory. And the RAM file system type exists purely in those blocks. It's quite interesting in a fast way of doing a RAM based file system. The old RAM disk implementation had a separate copy in…

Contents