Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2114672imm; Fri, 7 Sep 2018 11:01:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYIG8aK+Wd0KxatuzyE7CBZeWyd8yqNj8eq+q2FnBRhsfYT6zT2ZgoR33qbEc3BV/J0tgQ7 X-Received: by 2002:a62:cdcf:: with SMTP id o198-v6mr9874860pfg.12.1536343266454; Fri, 07 Sep 2018 11:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536343266; cv=none; d=google.com; s=arc-20160816; b=NvN0EvnpJe95RyWn2cm9cJUszoGnAHrrMbFcmOkQqFlvSB1NCqGFLxR5BZErS0yoJ5 EYqCKsbYZreio/C6CI8vF2QF/AAjfFfWnwUY50RlBW/bacHm0HeKWhrtlGYyf2ebLhSv YqnOCtHWH962Qw0adJDfbmfmaWz/x/Co9ynrmWL8QEcpjCIjLwDruoPxK1B/kpjMAAGq cZeyNLs0MmGUZ8autz60/YqfRU/lz2crUjuWjurxKoGcInGWwr222PhNWddNQ52bU1Ic SU69rH76esMlX2dgpm47/42s7ptqB74ld+xovvFlkz8OiiNITFzkGYJHTZYqB52ibKFU V9SQ== 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=kvOy7j6VyQo71prQRraDJula3JlRDxnFJbSd7s/3VsM=; b=deXf2ydLqKuASjadF70dVy1q7oHXApyGDf/ka4CEldrhW/V4q4V9uMSG9CRWun6dhv GuST6MYrSH2XEQJiqTYEEx0Kx2S9XF8G23S3VFvGI5dOlVTD4NThoqThsjv2Kbj43xgX fg3uVj+5AdFWkkMqKucPVNYAWZJHkvXnM/8Z5LS+mwQC4VUL6OC2QU0Ad64wNBkMQa0C eX6QDSq+u3daPxjn78RjBO4NqQC5W+EXypAAsN47aZylVkbywqjLSVc4xUZbRMsEuUgy nBNralOX94Ldoh3FjmPDUjrilwNzZfbopcT6fZdpE+HnK+VgEvT3VJrNI+EwpErpZszv Qsdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ISVqSDxL; 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 j10-v6si8008414plk.406.2018.09.07.11.00.49; Fri, 07 Sep 2018 11:01:06 -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=ISVqSDxL; 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 S1727625AbeIGWlU (ORCPT + 99 others); Fri, 7 Sep 2018 18:41:20 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:38185 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbeIGWlT (ORCPT ); Fri, 7 Sep 2018 18:41:19 -0400 Received: by mail-yw1-f67.google.com with SMTP id n21-v6so5696209ywh.5; Fri, 07 Sep 2018 10:59:16 -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=kvOy7j6VyQo71prQRraDJula3JlRDxnFJbSd7s/3VsM=; b=ISVqSDxLzRU/Zu72YJywjEcV0C/qiz+Rz/ZlymoJ6RJ7xll1jGuYPTUUXf0x9fMZoP J9vhg+RKQtSOPAFtjFT8eOJEe3wKCwGUC6jVDKKg50t9r6ZEbcTClgALLhpvd51Ofm0S MoXzKjr+Em1z2ij+2EGC8WwWs+61nrsFRZ6zfG6J1MGtDcVrXtAUo4qC4KMfe8JCsxT4 ZA1kZIAGl0md3BRLec7bvE43OJ6c381TPZTPy5/g7XPnQQXbBXxW/cUGRUEfyGDnyBZZ hAWAhuKtVFxE1Ea4xmLWF0y3xYrtBrCYW9Jgq8npv2WICwKYXqCKvmSPHDB9MmuNx039 1Etw== 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=kvOy7j6VyQo71prQRraDJula3JlRDxnFJbSd7s/3VsM=; b=G/JVZBOFIJ0aX3eScWcv2BKZr/zh5VkiZj4xzSgSjhoLM6288RSvSEboZo4sx38BRy TeWaWhH4ghPw7+jurploeHPMK8KvhNFR4RWmCu5S7GfI3e3VteN9TMp04Ij4TtwXf458 3/ziZdGSJjrI6H6Ag+CWARVrFimEjpFxpNA9zkWLGbO5gB7hh6fkwpdxoOEZG90XkvVs XpTOLzImwRDXyVKKTsGm+V33g4FJvhA/x9Fsj3SEoFingdMDhHPQ2BbNrlrOKkV89A9/ eg/dogkCQiDFj+4OD97bP+3sx4z6hBivP1Mkk3ZRCLQ5C1ph7L0wO5yma6Japj65/gA6 T7vQ== X-Gm-Message-State: APzg51BRNh0JhiJfx4jWZdqdLipD/b/mOPBtd/l5D5ZajvFaovuQw1X4 gDrHmAZLIarzLdIai0hpOz8= X-Received: by 2002:a81:af0d:: with SMTP id n13-v6mr4869628ywh.105.1536343155669; Fri, 07 Sep 2018 10:59:15 -0700 (PDT) Received: from localhost ([2620:10d:c091:180::1:70a9]) by smtp.gmail.com with ESMTPSA id j8-v6sm3050341ywj.6.2018.09.07.10.59.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 10:59:14 -0700 (PDT) Date: Fri, 7 Sep 2018 10:59:12 -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 11/12] blkcg: change blkg reference counting to use percpu_ref Message-ID: <20180907175912.GD1100574@devbig004.ftw2.facebook.com> References: <20180906211045.29055-1-dennisszhou@gmail.com> <20180906211045.29055-12-dennisszhou@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180906211045.29055-12-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 Thu, Sep 06, 2018 at 05:10:44PM -0400, Dennis Zhou wrote: > From: "Dennis Zhou (Facebook)" > > Now that every bio is associated with a blkg, this puts the use of > blkg_get, blkg_try_get, and blkg_put on the hot path. This switches over > the refcnt in blkg to use percpu_ref. > > Signed-off-by: Dennis Zhou Acked-by: Tejun Heo Thanks. -- tejun