Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp116050imu; Wed, 19 Dec 2018 14:47:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/XqCr9K3D7AVc9gsIQAj0Qw6xMLSjAMNMiyhtC5D9VyeFHo5oug+3b1JIqbPFrEUVgHqcl5 X-Received: by 2002:a17:902:2c03:: with SMTP id m3mr22764443plb.125.1545259634345; Wed, 19 Dec 2018 14:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545259634; cv=none; d=google.com; s=arc-20160816; b=aS1kYomDTqRrLN4jTWvsmOyfaTaKc5SGet7vR7ESJ8BBb0uenfGWiiDhzplW6MbNdk o76mG/P+XJRDtDRd2RjJSfNwJJE1JaOHo6tc7Sdl8615NiTlBlJFeFegC/Clfuoaq22E 1hoptjeCZxykZiOgMwRz8LvUyABkC2gYXFFV1PJ60Hphxbe/gitFnQX1tEDEUl+R8cIG DTQ9UlNRasrE3QR88WdHltmpBVmjRJlbaab9FIA4iOpa0F9dMk12u5lgHbH/+5jyRRC8 ULad5JjqItdBEycqLsREPXxhnw4kD8I2JnJDZOe8NgpYw8WVT/aAeGdT+dNks1UjrKI7 4iRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=aMlWOxxanyWGhdz+rklKQu8J3FMqqWnFQG+OHWd/InI=; b=iEU8a4nmpgXrczFzaPEXi6hvd/kO3tfpOm9Tcz8DUKOSovJ+eciNePM7y8kq5exers nLDmGacmXVJTzGtPs1rlAdt92uMLFiMeCSMAe5sQDRXLZdXyjeLRpl7vTEUovfCaaXnP jUIknDHxmWVZgwZmGC1Xttc/tr6rp3eeNbqXbSxBBj0egOb1oaxvESAimVGkUohe2IG5 eSTJS7WYAYbYnTfMQ8iOfna7cHgrNu/oCppHUE2rGKuLj/QiK65sWnMmgDPvLiOFZ3xs e/YRNv+hGRfWkQBgr/L+j+jNI5R63xB7nq+ohMAn5GCZ1k7uEo6zrrVvnI9Ri9blKwNV BjNw== ARC-Authentication-Results: i=1; mx.google.com; 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 f124si18243118pfa.1.2018.12.19.14.46.59; Wed, 19 Dec 2018 14:47:14 -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; 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 S1728688AbeLSWn7 (ORCPT + 99 others); Wed, 19 Dec 2018 17:43:59 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34233 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726716AbeLSWn6 (ORCPT ); Wed, 19 Dec 2018 17:43:58 -0500 Received: by mail-qt1-f196.google.com with SMTP id r14so24218693qtp.1; Wed, 19 Dec 2018 14:43:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aMlWOxxanyWGhdz+rklKQu8J3FMqqWnFQG+OHWd/InI=; b=pvAzb+ARhosBn3v55ja8uY+Z27mpa5cQ95De7L4VNhplM9AeSl/WwcMvRXo4FQ8hsp ea6w4K+apAG3oRdiab2wfLOuVbh0GsEcTmRBUtYuv/Cysazr7bnKARY3yWrWF3UjXEoe 68BTpjGY/NMisc1sEWhDGj5ChGwQX/FTWS+LibvJG/voqsHPea2rK/sbcrQD3IQGQsew tb4RRiU9R7TcerwfyNN9gAk0GBsKXinq49XwzWiLCJdYO4AlCEgVS3s95rTVugLHpHFI 6fNiJoq0YsyJc3o+vle9PQmYDnjf7i89ExZ7kOqQ0H+084ZPqlNXvBPve+x+AFNSAN6y UhQg== X-Gm-Message-State: AA+aEWaM24nspCIzYKEoLSKqHwg2jjN3O6ikB5pLgOfFjg8yFkJrYmIu ULmiYlNYOXPeGRl6k/pyZ00= X-Received: by 2002:a0c:8ecc:: with SMTP id y12mr23292996qvb.41.1545259437865; Wed, 19 Dec 2018 14:43:57 -0800 (PST) Received: from dennisz-mbp.thefacebook.com ([199.201.65.2]) by smtp.gmail.com with ESMTPSA id 83sm3524638qkz.73.2018.12.19.14.43.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Dec 2018 14:43:57 -0800 (PST) From: Dennis Zhou To: Jens Axboe , Tejun Heo Cc: kernel-team@fb.com, linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Dennis Zhou Subject: [PATCH] blkcg: remove unused __blkg_release_rcu() Date: Wed, 19 Dec 2018 16:43:53 -0600 Message-Id: <20181219224353.32763-1-dennis@kernel.org> X-Mailer: git-send-email 2.13.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org An earlier commit 7fcf2b033b84 ("blkcg: change blkg reference counting to use percpu_ref") moved around the release call from blkg_put() to be a part of the percpu_ref cleanup. Remove the additional unused code which should have been removed earlier. Signed-off-by: Dennis Zhou --- block/blk-cgroup.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index c8cc1cbb6370..2bed5725aa03 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -438,29 +438,6 @@ static void blkg_destroy_all(struct request_queue *q) spin_unlock_irq(&q->queue_lock); } -/* - * A group is RCU protected, but having an rcu lock does not mean that one - * can access all the fields of blkg and assume these are valid. For - * example, don't try to follow throtl_data and request queue links. - * - * Having a reference to blkg under an rcu allows accesses to only values - * local to groups like group stats and group rate limits. - */ -void __blkg_release_rcu(struct rcu_head *rcu_head) -{ - struct blkcg_gq *blkg = container_of(rcu_head, struct blkcg_gq, rcu_head); - - /* release the blkcg and parent blkg refs this blkg has been holding */ - css_put(&blkg->blkcg->css); - if (blkg->parent) - blkg_put(blkg->parent); - - wb_congested_put(blkg->wb_congested); - - blkg_free(blkg); -} -EXPORT_SYMBOL_GPL(__blkg_release_rcu); - static int blkcg_reset_stats(struct cgroup_subsys_state *css, struct cftype *cftype, u64 val) { -- 2.17.1