From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753041AbcDXSm3 (ORCPT ); Sun, 24 Apr 2016 14:42:29 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:35665 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752009AbcDXSm2 (ORCPT ); Sun, 24 Apr 2016 14:42:28 -0400 To: linux-kernel@vger.kernel.org From: Max Kanushin Subject: Question about request queues in I/O scheduling Message-ID: <571D1390.6060204@gmail.com> Date: Sun, 24 Apr 2016 21:42:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Please make a personal CC for me. I will really appreciate your help. Best regards Max Kanushin.