Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1047423imm; Thu, 6 Sep 2018 14:30:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaJ4HdUrA8YA7LJWi/w+ZQRFRlUjyz7x8cXhBCTdoSMPivvtuqJ5/vi+bEFo+sZkG2sPAzV X-Received: by 2002:a62:4299:: with SMTP id h25-v6mr5036754pfd.73.1536269434925; Thu, 06 Sep 2018 14:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536269434; cv=none; d=google.com; s=arc-20160816; b=vONxS0rJTqp7gjEeI+UrgrGtvdM609LFtDNzJCp14oiPzWklJ+/JyPdkhMbQoFYnv+ EHhNTYyl6/run1XlsCKzQjMUcdW66Y0jgiDjgO3TWx+PJ5TZF75Eh4vgvhyp+JCanuIh tMF2ZiUg7nPSFnRuHaDwFq/vdm4qcU+qsp5J0mwbfScNs5jdOFx7lWiwhNdh3EGivSh3 LW9meeSBs7WyYP8gH9+wwcWvd+FFfeqfOahYAF05ZwA5ksqWKqZyye412+MUqa3iZX5h 1DtNfyH1rQsi/YgYI3EJkN/fxrCvQyvSuz+SrThiBR9U4Epo2+BaUWfZNXEGMHpDkx9y ZALg== 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=GJ0UPslJxrAbVKKtV6nvTniosPmHe+Z8otYVdfOdD3U=; b=ZDT6sGpZTmFCi0hBJMDHiteUp7eoXS9ujgmUIWg69rS8yBhmJ2eCfGEOCEwMysIY8P y96wjJHWI0ZukDNmcGMWtk1EEWiXoaV9WkwmiiRzqItOi+1GcbWif5osgHdYI8wC6Tne j/QV9spiUlRbVs1GpCVT/OtJ03w13/iTYSYidGWqJ6267aZ8R35VNOXgwEK4blIDEnb+ MVs4IWVbajWcZpXOEr7qwsngMfiDfIxbgspeOnHhDR5Lae6WxsBRyJDUEk7yjwTzqJzG mnJt8r8vhBflK1lHUzCitZBosG765o6I8GQqgkI39NWzMHATpwfm5hX23TVpU5WfiuNM 3YZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TlLtdSvN; 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 h69-v6si5896339pge.13.2018.09.06.14.30.19; Thu, 06 Sep 2018 14:30:34 -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=TlLtdSvN; 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 S1730082AbeIGBUU (ORCPT + 99 others); Thu, 6 Sep 2018 21:20:20 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:33739 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730069AbeIGBUU (ORCPT ); Thu, 6 Sep 2018 21:20:20 -0400 Received: by mail-yb1-f195.google.com with SMTP id m123-v6so4672405ybm.0; Thu, 06 Sep 2018 13:43:09 -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=GJ0UPslJxrAbVKKtV6nvTniosPmHe+Z8otYVdfOdD3U=; b=TlLtdSvNi260eITMOW/emVb421ywK2n3dkfZEQR+EgqMdVIm2rDjoiCsIrwzIqTTAe Wywr5i66e5vKJc3Gg525voIrEISEKenkIEEmkGIqHcjFJ3zlzk5a/K6/R6rxM2n9Rq1g 3gQqgKxkkOFZj3ixQdlG3T2TE8vAgt068FXeveCPUiiwLtau9dCfIAu+zOqmfOCOGfHK 6Pt8a/LB/DIW+mxUuD4ifPogdmXfQRT6QWPSNKx08pGBmtd+C8HQ/MlpmltEQZt/mz0q eqCLoZ/vOe9y6Lw+xc+1A61SFzPxjBd6My9FGJCEC2Rc11hry/IwvWzfEztMdSb3Kp2o KyGQ== 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=GJ0UPslJxrAbVKKtV6nvTniosPmHe+Z8otYVdfOdD3U=; b=onaVn1zMMle2DHsKM1Pr2q9BMx6/sGR0gYk3lYAld/jXBRPmjT0YjSumWZLTgTvtii nS5KybQmIoQNL+NxENjrMMP3sXYlgqDzfmcPEoawJpRaqk79XcsxZbXO5wGMc+mgEXYm ieXD3ghi/dojEBTstMUepG8Udk4sOw+63MqX8po4hVBBemLy4gI8jvCZvtB6ym+nSOAy Po1zOWvPp3ps64R57p7u0zruqIdGscLchXKr2j9wFsKmVnijgbggLQeTxrkn8ChRyL1K NrlhxZOkGPHtCmzUO6wZw9G1yP+oEWC8a0IJOAY9yx0cgIgOxwE+wN+KU/7cHnCL6YHm zS4g== X-Gm-Message-State: APzg51DGYDOQ1NH68QhPIVRUV+CK1y1/UhD7KVxHPXJXGDGysu0KL5dJ zDZCQuqbzL4klMK2lNi6af4= X-Received: by 2002:a25:ba8b:: with SMTP id s11-v6mr2503471ybg.87.1536266588617; Thu, 06 Sep 2018 13:43:08 -0700 (PDT) Received: from dennisz-mbp.dhcp.thefacebook.com ([2620:10d:c091:200::3:20a]) by smtp.gmail.com with ESMTPSA id 200-v6sm2826445ywr.102.2018.09.06.13.43.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 13:43:07 -0700 (PDT) Date: Thu, 6 Sep 2018 16:43:06 -0400 From: Dennis Zhou To: Josef Bacik Cc: Jens Axboe , Tejun Heo , Johannes Weiner , kernel-team@fb.com, linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/15] blkcg: consolidate bio_issue_init and blkg association Message-ID: <20180906204305.GB26048@dennisz-mbp.dhcp.thefacebook.com> References: <20180831015356.69796-1-dennisszhou@gmail.com> <20180831015356.69796-8-dennisszhou@gmail.com> <20180831154225.zoiztxvdvcfaat5r@destiny> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180831154225.zoiztxvdvcfaat5r@destiny> 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 Fri, Aug 31, 2018 at 11:42:26AM -0400, Josef Bacik wrote: > On Thu, Aug 30, 2018 at 09:53:48PM -0400, Dennis Zhou wrote: > > diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c > > index 22b2ff0440cc..9d7052bad6f7 100644 > > --- a/block/blk-iolatency.c > > +++ b/block/blk-iolatency.c > > @@ -395,34 +395,12 @@ static void blkcg_iolatency_throttle(struct rq_qos *rqos, struct bio *bio, > > spinlock_t *lock) > > { > > struct blk_iolatency *blkiolat = BLKIOLATENCY(rqos); > > - struct blkcg *blkcg; > > - struct blkcg_gq *blkg; > > - struct request_queue *q = rqos->q; > > + struct blkcg_gq *blkg = bio->bi_blkg; > > bool issue_as_root = bio_issue_as_root_blkg(bio); > > > > if (!blk_iolatency_enabled(blkiolat)) > > return; > > > > - rcu_read_lock(); > > - bio_associate_blkcg(bio, NULL); > > - blkcg = bio_blkcg(bio); > > - blkg = blkg_lookup(blkcg, q); > > - if (unlikely(!blkg)) { > > - if (!lock) > > - spin_lock_irq(q->queue_lock); > > - blkg = __blkg_lookup_create(blkcg, q); > > - if (IS_ERR(blkg)) > > - blkg = NULL; > > - if (!lock) > > - spin_unlock_irq(q->queue_lock); > > - } > > - if (!blkg) > > - goto out; > > - > > - bio_issue_init(&bio->bi_issue, bio_sectors(bio)); > > - bio_associate_blkg(bio, blkg); > > -out: > > - rcu_read_unlock(); > > Move this removal to the previous patch, so you keep this patch soley about the > bio_issue_init. Thanks, > I've moved this removal to the previous patch and addressed the kbuild errors. Thanks, Dennis