Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1173183ybp; Fri, 11 Oct 2019 10:01:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLnWvhCFJqOQoOKPQ1+ZH1m7kKmWVTQxrqLfLDTicPtNnhENgyw7f3zSCtKD0FAcgJdYeA X-Received: by 2002:a05:6402:158f:: with SMTP id c15mr14818125edv.192.1570813311914; Fri, 11 Oct 2019 10:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570813311; cv=none; d=google.com; s=arc-20160816; b=Nd2ahw5AgbuUv6GDkrwM4ADVmAC4brK0GTv1/CcX+9ZMVJbjpBy3t2vA0rqS/MEHRQ 5c7DPfziArUUqsndAtU+kFcIcLbIkYfUc7sr4RKRQobK1mpFzu5A5/xpQaj4TdCDg/Vi OUX7p+4ZjMxkftz9wmOYtAwc/l9GcTjSd30NiRyDgHfF92hswcUfm50emLwohq91J26O IrpyI0yQYo6/+Va4Q92G2YVYO+GipjA5apbqG4PGlSLeM01i2OWEBVzBg2DeNP7h3WZd VY6oMgXT1askxq3giD0/iK3AQ6R8B0a3orL1BfHGh9UEPv0L+PE+hF9kD/BEhBSth2Gw ruyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=OKGWBUoxMayF3T/j4ufkanWg28YnrdRQH1PezhJ8qHw=; b=u9loMgcNFzWAd2m6Gnu7w2VrAA7T+LK8vO7ejeNU2Tpj9sSIeUm6Oiv5MVU4Bo07wI DULwg4tV64Sqm4W0T6Qef/umUbwU1SFF8gXmKDOzGadAG1407iIszBjvM4mHgPtaT2jj i+wZKH38p2E33suQZOSWYkWQUQQixbSedfMyorKOAm6kTqaIBdHwAaul58Tbrjw6hPsu FyvAev8BCKPI9fHi+3q62txZOzmHqkPYEknsYerC+nntQy1nkBRHc2M50gEzgfaNPZ/n SL1cq+HFPnF0kkygc1gLbM8SU6u2QBFvki8qSNd/A3LcTAWn++lCEDfFpHQOYyKSaJKn 53Gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n26si5307977eja.273.2019.10.11.10.01.25; Fri, 11 Oct 2019 10:01:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728462AbfJKRAp (ORCPT + 99 others); Fri, 11 Oct 2019 13:00:45 -0400 Received: from mail-pg1-f179.google.com ([209.85.215.179]:44243 "EHLO mail-pg1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728086AbfJKRAo (ORCPT ); Fri, 11 Oct 2019 13:00:44 -0400 Received: by mail-pg1-f179.google.com with SMTP id e10so2135180pgd.11; Fri, 11 Oct 2019 10:00:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OKGWBUoxMayF3T/j4ufkanWg28YnrdRQH1PezhJ8qHw=; b=M4/RsPfmEy7qjawshMo2QYhzuBUHg/p7I+k81pq6WhxxPXFsPj8YGZat22X+o1OX5D AgePYsdSIM16j27C/X5IEQAgQ457nYqnK8CSXn8Ydj+p1Rg8wJbinEHgtVF2DxmYrqYS moYOjiwVM/99HS7MJhfUudJ48YUkZLle+O7mk48vxtHuSxkyRjgNCaJ+r8xYIoIi1r7k M17YKO7Ln0kkJ+QLigixmJDzT58w+8JQntBUiaQMWjQYf8G+qFi85IHsEAKhIRWIrC51 kLwLjii++ixcXIHrvs+S8RuyyzYiL1XuXYBHxbRi9sPFUakMdwFRxUrJr0cBva5daIOD 65pQ== X-Gm-Message-State: APjAAAWjvCgf4Wsuo3LN7ZSJUjQSeTgg+WoMzVMgute9ftABOMEIs4kd Rjt2lVvOe9+APaRJ7k1DPEXHP25w X-Received: by 2002:aa7:98c9:: with SMTP id e9mr17932097pfm.142.1570813243804; Fri, 11 Oct 2019 10:00:43 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:202:4308:52a3:24b6:2c60]) by smtp.gmail.com with ESMTPSA id x72sm13692986pfc.89.2019.10.11.10.00.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Oct 2019 10:00:42 -0700 (PDT) Subject: Re: [PATCH v2 1/1] blk-mq: fill header with kernel-doc To: =?UTF-8?Q?Andr=c3=a9_Almeida?= , Gabriel Krisman Bertazi Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@kernel.dk, kernel@collabora.com References: <20191008001416.12656-1-andrealmeid@collabora.com> <854l0j19go.fsf@collabora.com> <6aa48cd2-5f23-a4be-f777-d65bf755a976@acm.org> <85zhibyt14.fsf@collabora.com> <86de2c88-5812-4a87-b5d8-1b7b1808d013@acm.org> <8e20f2c6-c165-5b5f-7497-9472913d0ba8@collabora.com> From: Bart Van Assche Message-ID: <66011772-9f04-dfc3-611e-7dc820d9263f@acm.org> Date: Fri, 11 Oct 2019 10:00:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <8e20f2c6-c165-5b5f-7497-9472913d0ba8@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/19 1:38 PM, André Almeida wrote: > Seems that it's not clear for me the role of these members. Could you > please check if those definitions make sense for you? > > - hctx->dispatch: This queue is used for requests that are ready to be > dispatched to the hardware but for some reason (e.g. lack of resources, > the hardware is to busy and can't get more requests) could not be sent > to the hardware. As soon as the driver can send new requests, those > queued at this list will be sent first for a more fair dispatch. Since > those requests are at the hctx, they can't be requeued or rescheduled > anymore. > > - request_queue->requeue_list: This list is used when it's not possible > to send the request to the associated hctx. This can happen if the > associated CPU or hctx is not available anymore. When requeueing those > requests, it will be possible to send them to new and function queues. Hi André, The hctx->dispatch description looks mostly fine. Can the following part be left out since it looks confusing to me: "Since those requests are at the hctx, they can't be requeued or rescheduled anymore." How about changing the requeue_list description into the following: "requests requeued by a call to blk_mq_requeue_request()". Thanks, Bart.