From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753759AbcD2PcB (ORCPT ); Fri, 29 Apr 2016 11:32:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34968 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752964AbcD2PcA (ORCPT ); Fri, 29 Apr 2016 11:32:00 -0400 From: Jeff Moyer To: Max Kanushin Cc: linux-kernel@vger.kernel.org Subject: Re: Question about request queues in I/O scheduling References: <571D1390.6060204@gmail.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Fri, 29 Apr 2016 11:31:57 -0400 In-Reply-To: <571D1390.6060204@gmail.com> (Max Kanushin's message of "Sun, 24 Apr 2016 21:42:24 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Max Kanushin 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