Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2747659yba; Mon, 15 Apr 2019 19:25:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSNFGg0BGXckb3FdssVKupN6placOuSjjmAXTMT2R/+qUmq4X7WpdmpUYYyZnxiRkaBSnE X-Received: by 2002:a62:1d94:: with SMTP id d142mr77450407pfd.83.1555381556609; Mon, 15 Apr 2019 19:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555381556; cv=none; d=google.com; s=arc-20160816; b=R74/HRRdTJyGcF76fnQeR9Kb9PqGn/TSDYBFPB5XSLE/zRVczJHFo0p+7EANmK+ndI ubMlRp2zDHAPJ03l8M9HffNcgc1uvBXpwVqe7lFPPZ01Ic45zqC6G6UdPLSjthhUZNT0 UUr6DweiCvoNkr3+FQLLG04TyuTjOnGYsVqaPYAIcnuUFrWWapWcaJv/mCxbng0zAPWq cC+ZyAxQ00aMK8Si1jJNAtx/1u6e5ttvAPl8uRLuT50XA9mR3oz8C13n7BHxMV/J31/v 6aYt2cQHgx8/CZF3jx9NeCvMZnoEkFNbl9HIw21UKmXz+ftQXcJj1TgA3YQ3KWbJVkqj Gn4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LlTDpZuIFjJuPEuqIHHIv28pYged3rMJDHnhIBi9hTo=; b=U/5fiBMt3JtMtP9bSESzthmRqyu5HUFz/8ZeKLOnM6xrzftLlmaLtgxAm2m/5ttkfg 68JADNNvv3lVCayLI//PLSlkZueXfeVg41KusWb2QQ74C/vP71Qp9K2L87bZuFIpcFT8 uNKnwSSfT5Y/cSNOo//8nQ452tzEXQCnj4HOLdBh6Pukml+Q0zF2o8sDYufunrcZcTfs WO/EKTBw35tED0yaEqetQ+t8XO6u0sEpa11TdIEyeFF2HAYnVgTJrePPHzlD9S4zwkjU IhbYXCkHv8sCIEIpXli9ph66/QJ9UZAqc2S+2P2oa/KBvpHiaGRyFHJmQCl3CFFTddLJ /f4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=igGEhHvR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k193si45979390pga.319.2019.04.15.19.25.39; Mon, 15 Apr 2019 19:25:56 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=igGEhHvR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726346AbfDPCYN (ORCPT + 99 others); Mon, 15 Apr 2019 22:24:13 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43123 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbfDPCYM (ORCPT ); Mon, 15 Apr 2019 22:24:12 -0400 Received: by mail-qt1-f193.google.com with SMTP id v32so21614122qtc.10; Mon, 15 Apr 2019 19:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LlTDpZuIFjJuPEuqIHHIv28pYged3rMJDHnhIBi9hTo=; b=igGEhHvR7MJdsRxBMXLI3mZ3XmsAXXT1eiEMHpzUxAqq/evYvm4VyWflG6XueKQzAw TmB3OxhvJIyycr4WRRuNhclWVTw2zS+83fE4La+iw9gyZtO77XzsTMeICxfRmufhSOU9 gydbAEq9fGMG7cvYp3KGAwIQN7NGBT6N0cIrRrTwdi7/7lykTSOVw6Ro9OBnlu/RHFJE MzLgrf5CPTnJxVnQ0YWdC9WZ41yZiUJnwgDiPTOvQ9q15d6KlcAWzAmiXkfTsl8HXD2/ //Nxz4CLycF3lh1seTa40sXfYHNYpf8FS+3eI4lYzWe/s1UPnciu+fjwDNfTukQOl1Db dR/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LlTDpZuIFjJuPEuqIHHIv28pYged3rMJDHnhIBi9hTo=; b=gjjtyaGi/Fj7ioWfLG4ynP4erh1Dk3h+lR8B4D5AJcQU1KNYEBz/NVNaPGipBwcyXX LlGjQgsMSDMNUoP6UiW9UY6xuOV2swDG0O8Sr1kjv4DgMQzrXyXcPsoKidhSgB7rq8fU g5z9kbiu8B0fX7bXFKmu8JQj7Qz2/Aaom2aTTZIbet6YWlvsZxYNA0JHnBdZj7LW/LSS stv0r/+m6gI7ppQfiIHjMljCyyCT6WIaaDJgwNDqpf3QhBEZj5dCSQQu55PLY8EJxFje K3Cq4396W3GJlXvU6mUGZTeFswc2liFbgaDDrYngVtScxi9GDJIB2JO400pHmGGSXqm1 FJow== X-Gm-Message-State: APjAAAVw9eEegfGABdhnOrIZSQQr1NgHE5bRycyl/YYLzbPzoMmmD/7B X9BWfgquSitS4GzAEWBBpA0sCxmFMnI= X-Received: by 2002:ac8:372e:: with SMTP id o43mr63440214qtb.74.1555381450962; Mon, 15 Apr 2019 19:24:10 -0700 (PDT) Received: from laptop (189.26.177.132.dynamic.adsl.gvt.net.br. [189.26.177.132]) by smtp.gmail.com with ESMTPSA id h186sm32147647qke.45.2019.04.15.19.24.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Apr 2019 19:24:09 -0700 (PDT) Date: Mon, 15 Apr 2019 23:23:55 -0300 From: Marcos Paulo de Souza To: Chaitanya Kulkarni Cc: "linux-kernel@vger.kernel.org" , Jens Axboe , "open list:BLOCK LAYER" Subject: Re: [PATCH 2/3] blk-mq.c: Rework documention of blk_mq_init_sq_queue function Message-ID: <20190416022315.GA153476@laptop> References: <20190414031055.26350-1-marcos.souza.org@gmail.com> <20190414031055.26350-2-marcos.souza.org@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 14, 2019 at 09:02:13PM +0000, Chaitanya Kulkarni wrote: > On 4/13/19 8:11 PM, Marcos Paulo de Souza wrote: > > Describing better what the function does, and what the arguments are > > meant for. > > > > Signed-off-by: Marcos Paulo de Souza > > --- > > block/blk-mq.c | 17 ++++++++++++++--- > > 1 file changed, 14 insertions(+), 3 deletions(-) > > > > diff --git a/block/blk-mq.c b/block/blk-mq.c > > index 4a8277a54c03..fd0bf89b8a73 100644 > > --- a/block/blk-mq.c > > +++ b/block/blk-mq.c > > @@ -2675,9 +2675,20 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set) > > } > > EXPORT_SYMBOL(blk_mq_init_queue); > > > > -/* > > - * Helper for setting up a queue with mq ops, given queue depth, and > > - * the passed in mq ops flags. > > +/** > Is following line beyond 80 columns ? Actually it hit the limit of 80 columns. > > + * blk_mq_init_sq_queue - Create a new request queue with a SQ queue and tag set > It will be great if we describe what SQ in the above line, otherwise we > stating just obvious here. You're right, I will change the "SQ" for "only one hw_queue (SQ)", to describe what is the SQ. > > + * @set: tag set to be associated by the newly created request queue > > + * @ops: operations to be associated with @set > > + * @queue_depth: number of tags of @set > > + * @set_flags: flags of @set > > + * > > + * Description: > > + * @set is initialized using @ops, @queue_depth, @set_flags, and using only one > > + * hw_queue (SQ). Later on blk_mq_alloc_tag_set() is called to validate and/or > > + * adjust values of the tag set. blk_mq_init_queue() is called passing @set as > > + * argument, returning a new request queue with @set associated. > > + * > > + * Returns the newly created request queue on success, or ERR_PTR() on failure. > > */ > > struct request_queue *blk_mq_init_sq_queue(struct blk_mq_tag_set *set, > > const struct blk_mq_ops *ops, > > > -- Thanks, Marcos