Re: Question about request queues in I/O scheduling

From: Jeff Moyer
Date: Fri Apr 29 2016 - 11:32:04 EST


Max Kanushin <rextuz@xxxxxxxxx> writes:

> Hello,
>
> I was searching for a way to find out the length of a request_queue
> (that is defined as a structure in
> linux/include/linux/blkdev.h). However I am new to the kernel
> development and can't figure out where is the actual list of requests
> to be processed by an elevator.
> Is there a way to iterate requests in a queue or at least find a
> number of them?

Hi, Max,

What exactly are you trying to accomplish?

Cheers,
Jeff