Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp459397imu; Mon, 26 Nov 2018 13:21:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/X84NHJeXMFKACZDIUdUoit/2H8Fak7+F8zctch230C0ARjy2vaBnSWErf/ROj+1O0isnCV X-Received: by 2002:a65:4904:: with SMTP id p4mr26723342pgs.384.1543267296840; Mon, 26 Nov 2018 13:21:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543267296; cv=none; d=google.com; s=arc-20160816; b=R4koB5s4RjbfEFtjsuiSjAZvduf+eL3oy7jJMLeYGs78geLbXXMd+O12g10zblrKL8 8x2UvyZSHI3IK+w9uxdoxqBb8YbvNF+5cSoryfMeDX4ytoqg1NiQAjxwOjLCILKw5b5Y S5kmIT+FvDQagjTAGXwbSr+taYSzMk65cPm8Kht3dZ0FIqXva9Kn4ZhcV+KnNeQescvR lvTsFXDPBBr8jT+GWC0Fs3roo2qhtRIx7NQ6XN5dUB7sMwTCh7CKsH4t8xPLHZbXE8HI i8tZLGCl1DQNBrpGHa7jhAOu/V1ahiAd+hDc2mcGsOreCddOWp3aFkKqfs6/EEhoLtwt QkjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=090PLFd61t5/5kPTjv45shTyidriuC2aK3z6nlYUPsg=; b=tL3e6AmfjlGcj+5/IIZ26IhudUSJd2MoJHZm8Y4Oz3uRV5fXeDoBPt0u/FfECGauhf FEzdHMCB5k6DBWxw9ChIswV1QMaoP0M/4kCPnCaSeV0jzEZmy8AzaAJJ4EQdXOR+6mSa lDIwtw0SO2gVALdecf36zhBEI/K2a/wIcEoNAFWai6jPvVk7MPPGs7XToUO9GjWozIe7 X3LcxnjmGUbQFrKUB0B3L8CS5RRG/GX5LZnRb/7eHFP9tZe6hA/LgLGlSWW89mZWAjmo mMhzrXltzOaa8sjqCEbe5vBtiQ/BdKUggJ+uZLQ/WMa0a30G6WUQHUy7MXlbzUdTAmXQ qEpQ== 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 v17si1360269pga.566.2018.11.26.13.21.20; Mon, 26 Nov 2018 13:21:36 -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 S1727546AbeK0IPd (ORCPT + 99 others); Tue, 27 Nov 2018 03:15:33 -0500 Received: from mail-yb1-f196.google.com ([209.85.219.196]:39798 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727360AbeK0IPc (ORCPT ); Tue, 27 Nov 2018 03:15:32 -0500 Received: by mail-yb1-f196.google.com with SMTP id w17-v6so8135345ybl.6; Mon, 26 Nov 2018 13:20:06 -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:in-reply-to :references; bh=090PLFd61t5/5kPTjv45shTyidriuC2aK3z6nlYUPsg=; b=clpszmGkdtYfEVVZBHz60glUuOyscqMC3GN6kPn9CIIbfO3ImbfRqTewcSeWYBIwrK d2Ib+W/PA47n8LfkTfZISIkNH7b8MNDn+XFspmY5oUeGmiB4WG+lkWWavJupJPc+nZX+ xQlrGsRFFFQ94sot5mK+fWpGwxYWsXcmRBl7x2jXe9TtNh83Zp2wSrXgaQXPZhUXPgHu kCc2t9KRjhjiPj7vCBhdghxgIi8bVCwm+6Lz0bKGHXlKsiRVmZBuIFAhHrM1iT3URklM KDDx/la6NNcJ802lW7Jm0Udrhj2XfgPVX6DKNHbuiEcV+7zDr51yI6s2EoyQs94QMU0V fkiQ== X-Gm-Message-State: AA+aEWa5jKNU7iAyMsJOuNSYF7+bAMMKqBV11WQk531WKH+JkP6vLrRt mwk+cBfxHm0mB+0rXtyewNQ= X-Received: by 2002:a5b:48a:: with SMTP id n10-v6mr30218632ybp.89.1543267206042; Mon, 26 Nov 2018 13:20:06 -0800 (PST) Received: from dennisz-mbp.thefacebook.com ([199.201.65.135]) by smtp.gmail.com with ESMTPSA id d135-v6sm495462ywh.43.2018.11.26.13.20.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Nov 2018 13:20:04 -0800 (PST) From: Dennis Zhou To: Jens Axboe , Tejun Heo , Johannes Weiner , Josef Bacik Cc: kernel-team@fb.com, linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Dennis Zhou Subject: [PATCH 11/13] blkcg: remove bio_disassociate_task() Date: Mon, 26 Nov 2018 16:19:44 -0500 Message-Id: <20181126211946.77067-12-dennis@kernel.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20181126211946.77067-1-dennis@kernel.org> References: <20181126211946.77067-1-dennis@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that a bio only holds a blkg reference, so clean up is simply putting back that reference. Remove bio_disassociate_task() as it just calls bio_disassociate_blkg() and call the latter directly. Signed-off-by: Dennis Zhou --- block/bio.c | 11 +---------- include/linux/bio.h | 2 -- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/block/bio.c b/block/bio.c index f713aa236ac5..41cc2ead39f5 100644 --- a/block/bio.c +++ b/block/bio.c @@ -244,7 +244,7 @@ struct bio_vec *bvec_alloc(gfp_t gfp_mask, int nr, unsigned long *idx, void bio_uninit(struct bio *bio) { - bio_disassociate_task(bio); + bio_disassociate_blkg(bio); } EXPORT_SYMBOL(bio_uninit); @@ -2108,15 +2108,6 @@ void bio_associate_blkg(struct bio *bio) } EXPORT_SYMBOL_GPL(bio_associate_blkg); -/** - * bio_disassociate_task - undo bio_associate_current() - * @bio: target bio - */ -void bio_disassociate_task(struct bio *bio) -{ - bio_disassociate_blkg(bio); -} - /** * bio_clone_blkg_association - clone blkg association from src to dst bio * @dst: destination bio diff --git a/include/linux/bio.h b/include/linux/bio.h index 7b8bb1365977..419fdf5f8ab6 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -521,7 +521,6 @@ void bio_disassociate_blkg(struct bio *bio); void bio_associate_blkg(struct bio *bio); void bio_associate_blkg_from_css(struct bio *bio, struct cgroup_subsys_state *css); -void bio_disassociate_task(struct bio *bio); void bio_clone_blkg_association(struct bio *dst, struct bio *src); #else /* CONFIG_BLK_CGROUP */ static inline void bio_disassociate_blkg(struct bio *bio) { } @@ -529,7 +528,6 @@ static inline void bio_associate_blkg(struct bio *bio) { } static inline void bio_associate_blkg_from_css(struct bio *bio, struct cgroup_subsys_state *css) { } -static inline void bio_disassociate_task(struct bio *bio) { } static inline void bio_clone_blkg_association(struct bio *dst, struct bio *src) { } #endif /* CONFIG_BLK_CGROUP */ -- 2.17.1