Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751651AbdIMVmJ (ORCPT ); Wed, 13 Sep 2017 17:42:09 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:38138 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751365AbdIMVmG (ORCPT ); Wed, 13 Sep 2017 17:42:06 -0400 X-Google-Smtp-Source: AOwi7QCBCxzfcMNaSmsgV3pl4eusGxrry6aPstwL0NbbU47/N5OAPdq/I3srcsWZs/0bsqRGKp+8Ew== Date: Wed, 13 Sep 2017 14:42:02 -0700 From: Tejun Heo To: Shaohua Li Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, lizefan@huawei.com, tglx@linutronix.de, kernel-team@fb.com, axboe@kernel.dk, Shaohua Li Subject: Re: [PATCH V2 3/4] block: make blkcg aware of kthread stored original cgroup info Message-ID: <20170913214202.GC378890@devbig577.frc2.facebook.com> References: <101ca17fd701ce7afbc6e4e7d1d4d7a9f091db1b.1505335620.git.shli@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <101ca17fd701ce7afbc6e4e7d1d4d7a9f091db1b.1505335620.git.shli@fb.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 502 Lines: 17 On Wed, Sep 13, 2017 at 02:01:28PM -0700, Shaohua Li wrote: > From: Shaohua Li > > bio_blkcg is the only API to get cgroup info for a bio right now. If > bio_blkcg finds current task is a kthread and has original blkcg > associated, it will use the css instead of associating the bio to > current task. This makes it possible that kthread dispatches bios on > behalf of other threads. > > Signed-off-by: Shaohua Li Acked-by: Tejun Heo Thanks. -- tejun