Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp991426ybi; Fri, 14 Jun 2019 06:51:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzgPC61cDT18S19K2hzwnZ5fpP8zsx3HH8QgjT8IzfypdZqyetWFRAO5z9cGaza41QbpfR X-Received: by 2002:a63:5c1a:: with SMTP id q26mr37465566pgb.260.1560520287477; Fri, 14 Jun 2019 06:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560520287; cv=none; d=google.com; s=arc-20160816; b=v33LDS96Fw4tkAzABRVeA4eZTIgnCxENnuj/bukE4rt+an8PXiyPwgOfQrQkN2SSD6 x1sZv/PKFKSGvcrVfWYjeotWT0wolDz7y6DW88DugbUu+3P84sxfLHpvPWo87by5809n P2uF8Jlsm6bPA309FR0ethX5p1w3Ifh8PPYHXvUNQY1t4jArxxOEB4YcAQ55Z4Kwd8Am Nik9Aywcht2KK3NJ9QUkEUpg4yTIw1pq6ls6Vu29b6rzv767/o7Eli10KIZiVYkRXSTf AmQvD16aKT7v4GDU4QGTqGX2/YUg0RHXBJh0QcGbquTS4ZU8ssMfZiDwZ5s7nkWCG5xz hY+w== 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=Rdet0I+UWXME2YtJOPcri6B791wkgPbT0ODn/e0NNDE=; b=trRw6luufiD/3CSLNSXOB9COdA/s+kmWJ/IwUMvMUdqpEVb8kHC8TmKxOExaShUP49 96hbkWyH0P6mQ0eVhBz7VWK3EhMGWDlhR/h62fM4fHIoTIXEnA2qpobMLi8rNnCvF+io /1h6CApAhmUX8BgCvgz+1rRb/0x8bJdMLMwZZApRNQmuAmbbYDIvDxa3biKxtzlaWM7q frziWV+4k/9f3HWbTr/5AAVpbaLjnv3nObMpu0NPyhNMmmIztqMBfisRtoBYFa8S76MK c3chDMBbI7keMonb82XCS76zAhopRiYK/g3LClvO1bRmD9vPr0jliYfgg4q743r2hEae ce8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=xvG8BKrs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si2670414pgk.346.2019.06.14.06.51.10; Fri, 14 Jun 2019 06:51:27 -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=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=xvG8BKrs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728913AbfFNNuM (ORCPT + 99 others); Fri, 14 Jun 2019 09:50:12 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:39103 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728829AbfFNNuK (ORCPT ); Fri, 14 Jun 2019 09:50:10 -0400 Received: by mail-qt1-f195.google.com with SMTP id i34so2490606qta.6 for ; Fri, 14 Jun 2019 06:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Rdet0I+UWXME2YtJOPcri6B791wkgPbT0ODn/e0NNDE=; b=xvG8BKrsNAVh/vCgi+a/I1WY/69P6du33JCLdiidof2V0IfXffFjeJiQhuvNbYv8Hb POIBevYAmKF2ZByQmirjeiMx1gkNMeiM85Z6/HtgCH0trjaz6oG9cE5s+cG1k9XmxdsA jpsOdJwKw5qG+wPH48dKjymEbS6O2XDcPedhF3KcoyecbH/QNxglXXctQjWGu/SR09+j 3KzU8bLFH7PuOVeqXWOfWsvhSvJ3IMxABCbhnNq0itq+E2Hh/FnLEfzLunbj8HYnXL0p wfStLgLLMwK34P3zkkOb8twGzdXLL1kOqPqWVPuYUxcV5CXpjnabkhrJMBBeIoS78Axp EvqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Rdet0I+UWXME2YtJOPcri6B791wkgPbT0ODn/e0NNDE=; b=m22C6el7tKaCLf9Lkm4wEx06PUE3DeWOYmWHOS0hSyb638HL6qd7/xEkKwmqJbTI2M MvP79b2qoEMpXvg4KhuyGIvOUZfxu0AL+UxjkhkqEI51oLqoIHsLuywLSl2EUuNl99eY QhwMKQxAekuSy5oQiT8b1pD2Ork0eCJQZEo9BD7bu6XdNUP1nufEHU3YQiXeHRcivrKB oss+VUqJFYEy/9lvtQJbJXwepT4oyUH4JGxeIPiWNFxFMNB40OYYZpOwvEkeA+xNeEAo v4r87tQDCb4apqsbWq/WoXQbGAUEAlEzb2570kzGsxrPbIKbeyV7+7FRFSnqpIvr/6PE 8BDQ== X-Gm-Message-State: APjAAAUgoC8rZ+ZnVR0xs48Slp6a0jbb5Gc+4BlHNrOHJ5JKhOxbgNZR Jby0D19TwIJXkrbz8v6tsu1MDw== X-Received: by 2002:aed:224d:: with SMTP id o13mr77466543qtc.56.1560520209532; Fri, 14 Jun 2019 06:50:09 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::a658]) by smtp.gmail.com with ESMTPSA id d38sm1670624qtb.95.2019.06.14.06.50.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jun 2019 06:50:08 -0700 (PDT) Date: Fri, 14 Jun 2019 09:50:07 -0400 From: Josef Bacik To: Tejun Heo Cc: dsterba@suse.com, clm@fb.com, josef@toxicpanda.com, axboe@kernel.dk, jack@suse.cz, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 7/8] Btrfs: use REQ_CGROUP_PUNT for worker thread submitted bios Message-ID: <20190614135006.ug5qgpc5uocuip6b@MacBook-Pro-91.local> References: <20190614003350.1178444-1-tj@kernel.org> <20190614003350.1178444-8-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190614003350.1178444-8-tj@kernel.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 13, 2019 at 05:33:49PM -0700, Tejun Heo wrote: > From: Chris Mason > > Async CRCs and compression submit IO through helper threads, which > means they have IO priority inversions when cgroup IO controllers are > in use. > > This flags all of the writes submitted by btrfs helper threads as > REQ_CGROUP_PUNT. submit_bio() will punt these to dedicated per-blkcg > work items to avoid the priority inversion. > > For the compression code, we take a reference on the wbc's blkg css and > pass it down to the async workers. > > For the async crcs, the bio already has the correct css, we just need to > tell the block layer to use REQ_CGROUP_PUNT. > > Signed-off-by: Chris Mason > Modified-and-reviewed-by: Tejun Heo > --- Reviewed-by: Josef Bacik Thanks, Josef