Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4716494imm; Tue, 11 Sep 2018 16:52:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZQCi/Sx4m4fTiIvKaIzzrJ+FSfBhOD7FRuZ0fJzfFYhcaQ8atAw45Y9CeIAWbxhcpiG9Lc X-Received: by 2002:a63:4909:: with SMTP id w9-v6mr30560453pga.123.1536709943944; Tue, 11 Sep 2018 16:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536709943; cv=none; d=google.com; s=arc-20160816; b=GXBotDiWRXmDrJfMD+DsIaIUSOu9SKOiUIelYFh91siVtK5UMdY/NRH779gzZcfn8A FeWeU3/m1G2pgtNKWdvgoHVC57/d/16mwSposcMWuW36kOEkvvriMs0MCQ4mqFTxu7+s X0g2yfRQ7SIKYCqkH6IYy/1Eotgu0zFoJUZMOublYl3yzuZTniBVDmdMV81s7iO5OsE1 8VRfysmLsV6nZ3pINDnNZAvk6kb28ticU/+sjGxS3WY2ntO5ufjWAZUaiJ0GbFmw19jE FOFD/UN4n4/DDI8NJeMlimsNwyUONnm4+bR7DrlZ3KxsGtl+YzfGR2sTleVOfYtS8ohw 0j9w== 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=eA1Y8LAM4afbJQHN/Q+Ti6OaqCzYueF4LckPdLkAuEQ=; b=cIsoz7urZk5MCntdo9f3+qij1Hzzknc9vRYIxmOFU30BaUUlVKN9KtPp/A2QvGYdTF BCDxGQGFMJFR2MALDYLmuoi+OAbI/2uyHP9LnECBUfuzETyqKip3cs9lRlo5RP8Jl3Kk 37kkVQeu9eBTXtpeWSlRFv3DOntfBBVOxWnkBNC600hpcnxnvZ3dvA5ZY2rOAh5AlfjL u2vrKpI8j0ywfsO+akxfzUhdbTTvAc1Bh7mtZbr44cm7HE6mqIybBISV4FITQQb+0CJr utTQbSgwPb8VL+cHp2TjKBBWmG3SoukTUuGRYEj6OthB61SMgBZo6LQ16oPqYsQ2yKwg 0bbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hO5rT3hb; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11-v6si21557535pgi.221.2018.09.11.16.52.09; Tue, 11 Sep 2018 16:52: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=fail header.i=@gmail.com header.s=20161025 header.b=hO5rT3hb; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728038AbeILEvw (ORCPT + 99 others); Wed, 12 Sep 2018 00:51:52 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:38219 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726278AbeILEvw (ORCPT ); Wed, 12 Sep 2018 00:51:52 -0400 Received: by mail-yb1-f195.google.com with SMTP id e18-v6so62019ybq.5; Tue, 11 Sep 2018 16:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eA1Y8LAM4afbJQHN/Q+Ti6OaqCzYueF4LckPdLkAuEQ=; b=hO5rT3hbXcIWtGDs3OyFendQ0YC+UFVYXBBAz8vglQuSdKZ4XKCHjxdrX5nhMfN1Rz JzEO3vKitQt3NGra8UI+JbeG4/eawXZ+wQJx74BERbdBuzteccrfAonWna6WzxgyyI6g /ZfKD1lTmDsw6wfcv2gi32lk5swJBb3TAbsbxrwHuhxyP6wr0lCx6HUY2iXIwwvEfz/p /iSQYQb0QbqfGeRP1SqPZK9PecU3YAQJwPv9ms4tVbJ42TjaUnB+aTfYF5x7NxOBfBcA sjv+1Z8epTLmj8sRa+tmF2Nq76HRo9dyA4fYv3GMX1Tgxe71LcwUHSjwEUsXF6vIdC75 344Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=eA1Y8LAM4afbJQHN/Q+Ti6OaqCzYueF4LckPdLkAuEQ=; b=Zvyrf0j/MLs5RpQOwIrFAR6QIDOX9wZfHfEt8L8kS+v2t7irTXmo7sPJtxzJZmPWvO PjAiz287lKQU+NhGQpO4fwuMzE0tWpNPi04iiYprpZVba1DsXR7F9hLf4lXzaKhx/koS rY3Ej+Q0CgtthNKHWAmFhBAisDompHB//QXuOi12gJRU9QWXD09KQmay619eK+lBaXhb y5QiLlsChCzrQ1nJwVLMxY64+HuRPUoC0JkHDVyUkeHZngQXMUQoszyXJ+s88A3Aap4W YDv0IaCfsG2RRYMwlEx6FQSofIp/SpNW0TK89nQ74BINd8fsA2JjOY63l0M8h71FWVij hsOg== X-Gm-Message-State: APzg51An9/ESJimnUbJyTA7I97M15ezGoU/QqGY21IjeVlBPIysisnG1 E2zykNQVZB7QDgxgXipJ4qQ= X-Received: by 2002:a81:7c41:: with SMTP id x62-v6mr10419558ywc.490.1536709813019; Tue, 11 Sep 2018 16:50:13 -0700 (PDT) Received: from localhost ([2620:10d:c091:200::1:6304]) by smtp.gmail.com with ESMTPSA id z7-v6sm17156739ywz.21.2018.09.11.16.50.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 16:50:12 -0700 (PDT) Date: Tue, 11 Sep 2018 16:50:09 -0700 From: Tejun Heo To: Dennis Zhou Cc: Jens Axboe , 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 03/12] blkcg: convert blkg_lookup_create to find closest blkg Message-ID: <20180911235009.GC2966370@devbig004.ftw2.facebook.com> References: <20180911184137.35897-1-dennisszhou@gmail.com> <20180911184137.35897-4-dennisszhou@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180911184137.35897-4-dennisszhou@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 11, 2018 at 02:41:28PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > There are several scenarios where blkg_lookup_create can fail. Examples > include the blkcg dying, request_queue is dying, or simply being OOM. At > the end of the day, most handle this by simply falling back to the > q->root_blkg and calling it a day. > > This patch implements the notion of closest blkg. During > blkg_lookup_create, if it fails to create, return the closest blkg > found or the q->root_blkg. blkg_try_get_closest is introduced and used > during association so a bio is always attached to a blkg. > > Signed-off-by: Dennis Zhou Acked-by: Tejun Heo Thanks. -- tejun