Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4911955imm; Tue, 16 Oct 2018 01:59:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV623yMy8wqPP6JxjiZMfFzrAZbwN/492icqGkXq7+Tm9VAbZ8QUlPU3frVtyQKFMFhenvV1p X-Received: by 2002:a17:902:7897:: with SMTP id q23-v6mr20956962pll.54.1539680363170; Tue, 16 Oct 2018 01:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539680363; cv=none; d=google.com; s=arc-20160816; b=eWmV8dQKh7GvSW0F1cX0unAVS9fdBoC0rXIODuLsvhGsndWS29z3HEQO/8O2C9HiWT 8PF2DmW1o02XpVqSDzJ73+WB0ri35s+N5JPfmIOaqL6kUObNpce0VGAoVMFd+EYEQNea whOC3kiopN484VXaJ/6C1vKCIiRtjfR+KrLbAAJANHrFLBJ/PrVdl/xwsLw15j2ZAsId 3ZWo1HmwmddOO+d08an0bCyEK2ZahWGqbJbnqhE80wTVRFbpTumGCVU6TweEA7fZkgG2 tSwnnlCKcfcg3tD3LaZeWb+0LnOvEoFwmE21xs2IQVaVRgWW1PjIAO9ux2mk43cAhILi p44Q== 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:mime-version :user-agent:message-id:date:to:from:subject:dkim-signature :dkim-signature; bh=4hAh7JEoaIX8K3feQAchPgL9Ih9RzxYXRxnhAu/DNKw=; b=tURFdnZWijb+feuGxQVPuZzCaAfJtKGofrKLMqfjdbVNGH2f3LmqyVArwUhVDZVUxK oAS1ieI54XPTPmUAUgaHTt1j3LhuzDA3kAPwYE37OhM+r51YoQG3OJttA25NPg6iq3HH 3OrNym75AOHNjDipVhnbU6iIZD9ZA6Ctu8FgH1aScQTx8wcNkpy8FeAuW28sv/lH+6PV wC+31oAUnBhdYYr7eF9SnFIVXXsWb2XFn6uUdvBN597fIlZ594U3TXZnpsTac/7RSP9T HcK92E7S5HYrDBYJiE1gsYdJmaF+Nk3s5EPeExdaZKNbzqM4jMa16t/Mj3bBw0RUD9vb 8tWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex-team.ru header.s=default header.b=YbRLJotT; dkim=pass header.i=@yandex-team.ru header.s=default header.b=YbRLJotT; 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=NONE dis=NONE) header.from=yandex-team.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10-v6si11589861pfm.136.2018.10.16.01.59.07; Tue, 16 Oct 2018 01:59:23 -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=@yandex-team.ru header.s=default header.b=YbRLJotT; dkim=pass header.i=@yandex-team.ru header.s=default header.b=YbRLJotT; 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=NONE dis=NONE) header.from=yandex-team.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727442AbeJPQnK (ORCPT + 99 others); Tue, 16 Oct 2018 12:43:10 -0400 Received: from forwardcorp1o.cmail.yandex.net ([37.9.109.47]:36995 "EHLO forwardcorp1o.cmail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbeJPQnK (ORCPT ); Tue, 16 Oct 2018 12:43:10 -0400 Received: from mxbackcorp1g.mail.yandex.net (mxbackcorp1g.mail.yandex.net [IPv6:2a02:6b8:0:1402::301]) by forwardcorp1o.cmail.yandex.net (Yandex) with ESMTP id C4F6721791; Tue, 16 Oct 2018 11:53:44 +0300 (MSK) Received: from smtpcorp1p.mail.yandex.net (smtpcorp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:10]) by mxbackcorp1g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ZxjR3eIYjD-ril4DhOI; Tue, 16 Oct 2018 11:53:44 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1539680024; bh=4hAh7JEoaIX8K3feQAchPgL9Ih9RzxYXRxnhAu/DNKw=; h=Subject:From:To:Date:Message-ID; b=YbRLJotTyDpM+GMChONwGz1v9Sx2AiwGQ4nmnrYbZsSJ0LZN2fzrk9cS1jIvxxrXQ z21xukjqlkoBLxObfPGQUU39w77drXjPKqEviIU/IXhkhnJ/Kz9F0N25Y4ksOH/WU8 thg4MshbQ9auWDEzS9G6bycYi6dJ7kA15g7Ffc5s= Received: from dynamic-vpn.dhcp.yndx.net (dynamic-vpn.dhcp.yndx.net [2a02:6b8:b010:d005::1:29]) by smtpcorp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id AfYdSvkeAI-riWaLQ6Q; Tue, 16 Oct 2018 11:53:44 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1539680024; bh=4hAh7JEoaIX8K3feQAchPgL9Ih9RzxYXRxnhAu/DNKw=; h=Subject:From:To:Date:Message-ID; b=YbRLJotTyDpM+GMChONwGz1v9Sx2AiwGQ4nmnrYbZsSJ0LZN2fzrk9cS1jIvxxrXQ z21xukjqlkoBLxObfPGQUU39w77drXjPKqEviIU/IXhkhnJ/Kz9F0N25Y4ksOH/WU8 thg4MshbQ9auWDEzS9G6bycYi6dJ7kA15g7Ffc5s= Authentication-Results: smtpcorp1p.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Subject: [PATCH] block: fix comments about choosing request list From: Konstantin Khlebnikov To: Jens Axboe , linux-kernel@vger.kernel.org Date: Tue, 16 Oct 2018 11:53:41 +0300 Message-ID: <153968002141.396220.12979757828960821275.stgit@buzz> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Request list is determined by blk_get_rl() and without queue_lock. Signed-off-by: Konstantin Khlebnikov --- include/linux/blk-cgroup.h | 8 ++++---- include/linux/blkdev.h | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/include/linux/blk-cgroup.h b/include/linux/blk-cgroup.h index 6d766a19f2bb..dbff5a25f810 100644 --- a/include/linux/blk-cgroup.h +++ b/include/linux/blk-cgroup.h @@ -520,10 +520,10 @@ static inline void blkg_put(struct blkcg_gq *blkg) * @q: request_queue of interest * @bio: bio which will be attached to the allocated request (may be %NULL) * - * The caller wants to allocate a request from @q to use for @bio. Find - * the request_list to use and obtain a reference on it. Should be called - * under queue_lock. This function is guaranteed to return non-%NULL - * request_list. + * The caller wants to allocate a request from @q to use for @bio. + * Find the request_list to use and obtain a reference on it. + * + * This function is guaranteed to return non-%NULL request_list. */ static inline struct request_list *blk_get_rl(struct request_queue *q, struct bio *bio) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 6980014357d4..b5fec0bc72f2 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -444,10 +444,11 @@ struct request_queue { struct rq_qos *rq_qos; /* - * If blkcg is not used, @q->root_rl serves all requests. If blkcg - * is used, root blkg allocates from @q->root_rl and all other - * blkgs from their own blkg->rl. Which one to use should be - * determined using bio_request_list(). + * If blkcg is not used, @q->root_rl serves all requests. + * If blkcg is used, root blkg allocates from @q->root_rl and + * all other blkgs from their own blkg->rl. + * + * Which one to use should be determined using blk_get_rl(). */ struct request_list root_rl;