Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp331964imu; Tue, 27 Nov 2018 13:08:03 -0800 (PST) X-Google-Smtp-Source: AJdET5eGVvIn79nZyGYS+q5zFl1KiqDZuq4EkzjN7gl46XJD3PN4gRxzESZXPU84GLG6N0N59Ssy X-Received: by 2002:a62:1912:: with SMTP id 18-v6mr35643328pfz.194.1543352883545; Tue, 27 Nov 2018 13:08:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543352883; cv=none; d=google.com; s=arc-20160816; b=whTAsLj8iZOKVDuFyY0Zn6GkzfiJ1ztJtPvWO76iiXTCShkaIFLh93XEQ930/r/hTA AZuFP5PJid/krvaMbzD5f1wV3MoHTqh1E5VRCY6AREVs5+EGUWTNnL0BwbImf4hYAY2s SSHrPZHAc4SkBRQYtXraY2tzKZ31AG2Jxt+04GCyFPyZ3+PJVg/c2dtiNv8o+QPj3vyx ifdOTn5175ryuc/zMKD0o63p0zZ6KIQ/1KMuvh5EkXzah80bNMDezPTX8Op7jaNqgDyY +HptrxPCmYgw21B5bPd/gwLR15KBEi+PXeVV4VN8K4EYZ7BRpLaCc+i6kxlIb7doE2Ou Gbsw== 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=DKhHMZUmO4T2JI4GxBQQCY43PdHMrucN4JTGGfDXF4A=; b=Q404HlBHcZF8PYYouzK6ywmsYKqu/k94VkzFgSizYskpBa87XkrTH9he6jiq/qF4l3 4AvPBd58PgaT5InrBV50RR8xlInPe0Amoawu1ytOwsKVxz5oZ6VuFKh1bSRNgoNkcHWt og46gAbXyceyoZVsN87LmB7QRdrTOdew5j8ZGQoaLwErISYtP6OdtQXU+9y6rXe2kjIX fvHvbFChxQpanpJCFHeVk4NUJkkci0AcgLhs10I/aWew6A1WZLlhxcU1ssDwxTUa8Ie/ 2reE/190uAfR7/YsnygiyxwC6SMTs7LMMox70pluRHvYMhNxhN/xzY8hgmDN6nHwtxVj jLAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=wqUG50Df; 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 y141si5734647pfc.180.2018.11.27.13.07.44; Tue, 27 Nov 2018 13:08:03 -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=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=wqUG50Df; 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 S1726679AbeK1ID6 (ORCPT + 99 others); Wed, 28 Nov 2018 03:03:58 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:34666 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbeK1ID5 (ORCPT ); Wed, 28 Nov 2018 03:03:57 -0500 Received: by mail-qk1-f194.google.com with SMTP id a132so15556703qkg.1 for ; Tue, 27 Nov 2018 13:04:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DKhHMZUmO4T2JI4GxBQQCY43PdHMrucN4JTGGfDXF4A=; b=wqUG50DfArZzDI2OENoPA7BlkLdyZFZecJxoqhGbU8JT0QLUgpjFdZ28glcNyCIpJH lvr+lLx0UGFkPTk3rpMRBui/6wna+WpJuCEG5yyCTyzthtoEOhkbdpADrH710MDpqA5K p41XUCY6XCpQtI+G2GXbRfA5+6BVCxJHcnjN3Q/rjVlm5CdB+aI2uqdadGHA6XJCFdxd gqgCWUXPHoFfWikX98jJGDE/DLxV5UJXDHIx8DvkUlWLMsDrD5OebyirJ1GEM7YijMdv lT/Xrom2boQMjjaUHykYIVLkke9UJFiPzcPkarS5z2iT+zJE9SP3WgKg8Q0ICAX7SEKZ mzmg== 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=DKhHMZUmO4T2JI4GxBQQCY43PdHMrucN4JTGGfDXF4A=; b=ZdXavND9ijTYW0PA0/0q3kX6RJdRuGag1nuf65uxA3MPywIKacKtnPUUnOjfo+lRE4 iAyzCZ1GPG3tP4qAi3qQURvKQS/d4YpU0gW0+LVKZsnSF/EPuOD2UDuQX8P2k5l6HmGy X4knH9559r7qmLWX+mCyvl919LB+9ZJJDou6nzDO9jccK2grj37gwo8Q+xK9uCabsqkg y1q0yXIHPD5BBwdGQcr97+FG+2ho1t2h7KOpq6TFxXn635lU6Op0+0Dpcv8w3sVvAb+q 4QR6ZN5SFXBMpuuaYJtm4xq9s0/cBj1zjZieL/s4wzwvP9LG0GNdDsHbQ1mVm4oQ1hr3 rhSA== X-Gm-Message-State: AA+aEWYE6xh1SNpfjND1fiTj5KuD7XHX7yfE8ulweI6+EMuqh+v9wHnC gX6mqDyOXJ6y4ySEdh0J7BhTnQ== X-Received: by 2002:a37:6749:: with SMTP id b70mr31414512qkc.41.1543352686559; Tue, 27 Nov 2018 13:04:46 -0800 (PST) Received: from localhost ([2620:10d:c091:180::1:4c40]) by smtp.gmail.com with ESMTPSA id j36sm2901421qtk.15.2018.11.27.13.04.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 13:04:45 -0800 (PST) Date: Tue, 27 Nov 2018 16:04:44 -0500 From: Josef Bacik 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: <20181127210443.pornubsaa6vcbgih@macbook-pro-91.dhcp.thefacebook.com> 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: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 26, 2018 at 04:19:37PM -0500, Dennis Zhou wrote: > There are 3 ways blkg association can happen: association with the > current css, with the page css (swap), or from the wbc css (writeback). > > This patch handles how association is done for the first case where we > are associating bsaed on the current css. If there is already a blkg > associated, the css will be reused and association will be redone as the > request_queue may have changed. > > Signed-off-by: Dennis Zhou Reviewed-by: Josef Bacik Thanks, Josef