Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3537471imu; Fri, 30 Nov 2018 01:53:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/XtRoZowybJrYsBdD3JlvixF/+vdgJ21QVqTFYc+TbyIF1bQLaWRUuqocCzPiQqF2eLkPCA X-Received: by 2002:a17:902:1e3:: with SMTP id b90-v6mr4975214plb.117.1543571593985; Fri, 30 Nov 2018 01:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543571593; cv=none; d=google.com; s=arc-20160816; b=sHtBUJp+ijVdycNt58ZgMQGaY2/Rhx6O+uKKsxjXb3clR2VXs8n5x5kM6IWaAIy9lh DzKFekR7Ur6s5NZiwFDWxsC4j2HNz1l+rokfrTwVSqv3OrRMWz+wfQWYlkKEbUIOeLjb FzXflr8v4I8Kb6b7HQb9enu2wjsF9AZZAeljC/9fo5TRgsAhEYtgRArQDUzafDOkDVPM 8QzIuKUGMmO7Q7IJc093gxFYKhsFHWJNSDqS7Qy/1kBnQYhXuYiFX78OOvZKKKd83mmv dhwiu5Zn3DpWbxP3Sx8rOhBeY2wgaBHJVcL+rzj7CoSR65xMM6uiFJyU/K5xCkOKYKzb lwNw== 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=6q7jY9M3Xxr98uF8PXjB8K4B1EQ3wKAhciyGEAcP45I=; b=XPxXwsha2vH3vK0sGz5Ufe9hSvBI/QEbhzEwIq5aX8KGu71Y5Xthjt+Bt8Lmik0Ehq pSlU075xIZDevpV7gJJ88ixP4Ia4Ub1h+PqLjD9DTo6VIv5af3voXgERs6wenjVVGINx 189AmzDLomypdLnrMelCGFgWlHOysYDDLdcfnlNVIlkjgfFrYkZf68Tgrw6/5qULBc3b ld7VyC83NAWzcRNEOAc7e+dK6/mv0omAtdrZuPX74pZONLmfnhIOdRL6DbLLMCf5bUPh ko5d7qeuMA7N4fQTlIrFE/vD/JzD1puEHa8JzvH9eXoikwYdxO0mMTEDr0ai5mUMF7z8 EZ1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NuXkr1HN; 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 v6si4990572pfv.181.2018.11.30.01.52.58; Fri, 30 Nov 2018 01:53:13 -0800 (PST) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NuXkr1HN; 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 S1726582AbeK3VBG (ORCPT + 99 others); Fri, 30 Nov 2018 16:01:06 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:51698 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726499AbeK3VBG (ORCPT ); Fri, 30 Nov 2018 16:01:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6q7jY9M3Xxr98uF8PXjB8K4B1EQ3wKAhciyGEAcP45I=; b=NuXkr1HNdwTZYBGmox5iKZ5Ou O5Ma6ijWm7rEaCXJ540DexIl8KDjQrS81yjU2lgr3+eCcSD7oXwnai/iof3ozxYA0Qlusj9xNIrAO /cczBNoLVDYv9rK8tezQccZMlXLmqDUlmtl+sQNDZS0nuoEG9Cqflp8j4sI6Q/Q2CeN8a1qLGOKsc g9YjzP3YR31b7lwsW72NYVBMA4HVLnH4ykDqplDTq2jLuVVh4cYVEaRvqwQZbsw9TIlaerbpJyTDf T3Y+7R12Hsl2HguZgh34JSzdSUSAcvFgZ1fuqH1USz4vFO+jzxdqN1pvenYV/4qlWjpgIXz8eNQKT ICTvFN78w==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSfT0-0006Bv-1E; Fri, 30 Nov 2018 09:52:10 +0000 Date: Fri, 30 Nov 2018 01:52:09 -0800 From: Christoph Hellwig To: Dennis Zhou Cc: Jens Axboe , Tejun Heo , Johannes Weiner , Josef Bacik , kernel-team@fb.com, linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/13] blkcg: introduce common blkg association logic Message-ID: <20181130095209.GA17103@infradead.org> References: <20181126211946.77067-1-dennis@kernel.org> <20181126211946.77067-5-dennis@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181126211946.77067-5-dennis@kernel.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > EXPORT_SYMBOL_GPL(bio_associate_blkcg); > > /** > - * bio_associate_blkg - associate a bio with the a blkg > + * bio_has_queue - required check for blkg association > + * @bio: target bio > + * > + * A blkg represents the relationship between a blkcg and a request_queue. > + * If there is no request_queue, there is no blkg and therefore nothing to > + * associate with. > + */ > +static inline bool bio_has_queue(struct bio *bio) > +{ > + return bio->bi_disk && bio->bi_disk->queue; > +} How do you ever see a bio without a queue? We can't even do I/O in that case.