Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp986864ybi; Fri, 14 Jun 2019 06:46:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6VB3bTifHH+dwDAvMqq+O2Rv2ilauRurisNoxWVZBXaARsN4BkUhA3k69oh5n4rNFrbmc X-Received: by 2002:a17:902:bd05:: with SMTP id p5mr18108122pls.92.1560520012627; Fri, 14 Jun 2019 06:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560520012; cv=none; d=google.com; s=arc-20160816; b=MIPE6sVn4fuXM+G0WmJreZ449SvCZKX9cURGyi9bPTsiezdMHJuOhJODWR2vdCncpH NlDZG7MUA1ULBt24D1V6lJslOdiruijALHTlhN4RS3ajuIPjcSS6vvp7QpIuHpNWqF9c 8FHyF2erWQivkPKIRZeauWZjSyZFPX5lMrdo0N3OfreE99PkuI+GLAOA7mD7wAkD25Ro 0LCN0IxZI3bGcDSRhzKR6MW90FYT9PQcTvqL7CKAivrj9jdQ5E9bCTZqeODeVEAIQ8Mc 3ubQUfNvgCs1ThHZTrPt2e4AKmYbkoWzCmWlM9D5IoCpIlB+7DyRXI75dyxmr5PGeK2a 2uXg== 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=OoE9TTwZ2oX4l67lO4UKKcsLXQImUKGP20eXDpNCJrQ=; b=fd/eYbAH5sQTPKfo9nBvh3iQ7Obm4cB31TvIkC8ypzDmXMENM10hj3+BOEyLApBZ1P F8Qj6Ejn6Na8dzhdEMbyOwUPuwVonATUP/7F4wfUaW4pbWTH6l8+7NRVPLNnduhq1bi9 CXxr5dgMfEq4kKqZgOJm/4PFrx2LXfmYP1rJPfPKFXG2TOgtLQowSju1Qq2Ka7P72De6 ZJuJsGssRnleedsHf+QlwD5C0bydqXBApOsEmM7XkOVuvC/vZZXweopYsBY96oYDx/et PcgpP0/wKf3K5uk/AwiTAI59UCDlSPYuP4R5urgk4qXT/BOjy/GQAIIxFU2q29JNwrju g8Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=CmA0VwwE; 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 a8si2221864pls.118.2019.06.14.06.46.37; Fri, 14 Jun 2019 06:46:52 -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=CmA0VwwE; 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 S1728345AbfFNNpF (ORCPT + 99 others); Fri, 14 Jun 2019 09:45:05 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:45204 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727382AbfFNNpF (ORCPT ); Fri, 14 Jun 2019 09:45:05 -0400 Received: by mail-qt1-f196.google.com with SMTP id j19so2439051qtr.12 for ; Fri, 14 Jun 2019 06:45:05 -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=OoE9TTwZ2oX4l67lO4UKKcsLXQImUKGP20eXDpNCJrQ=; b=CmA0VwwEqJigtFceHJxQeYm3whQH2/+4pEJ/T/TOOR81IIrusYRBFbvLnkk2d8y9zK n1zgsO3A3KhD6bJjzcoi53PSKIjlVu7yoeqsxOpjp0j0dLgQPuSs84L29BAT52XfCqPT 0l9Luwh6m1xaqa5JgO0hohC6Kgb3fA6L1z+xJnvYDCe1p1/uQVjEmDenWKlttKNMi694 O2zTv0sNHEM8H6IXKqNLita+OS5cAnoiCLwBMN8+xxSjPZvbkjNWrxPhgBUR84mn84bD iTnsipFfh1WbMAjWOuKPoxmuL5PsSVfcthoirTwInDvf05QM2YmJfPADbHinscIK24+J HwiA== 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=OoE9TTwZ2oX4l67lO4UKKcsLXQImUKGP20eXDpNCJrQ=; b=Y51VafQMFaKdf0n06LYysuvZWsDV8E5i6nxxzugQ6t1I5qhUUgoH3xVzzmECMlwree 8otG70jlg840NUe/JYVXvingQ4VLYAUzph9aTCSCZYIPxgkWPDtQF0p/mLcSb3mSrJ2X EWNcYJv2QrzKzPlL/t/AvGgZRQzNfdRoDTBCdPfYT6gcMUD/8xLBKPJVvLscr/xgbBpo +5xIKX60AYWgY0yqUtSm2KNIz/RLUgZkGblJtvAkkr7R4mcMSnzvMoapDpNb07tezvGs iob5zGNVNf7v+UqRs2GLeH16AXu7OKY4UwCW5AK5gSv9krloxBACuqhiPvuRvmz/b1jf XmMA== X-Gm-Message-State: APjAAAVkFHOCmvjWEAcPfiGTrV2liBlinxU/I448biHCICrSSiiy/7Al S0Wt0OauDaDdMmTGd/DAkFPGqLTwCYPh2BRe X-Received: by 2002:ac8:374b:: with SMTP id p11mr77934298qtb.316.1560519904543; Fri, 14 Jun 2019 06:45:04 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::a658]) by smtp.gmail.com with ESMTPSA id c30sm1843863qta.25.2019.06.14.06.45.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jun 2019 06:45:03 -0700 (PDT) Date: Fri, 14 Jun 2019 09:45:02 -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 4/8] Btrfs: stop using btrfs_schedule_bio() Message-ID: <20190614134501.cjnrsb5n6jtteqex@MacBook-Pro-91.local> References: <20190614003350.1178444-1-tj@kernel.org> <20190614003350.1178444-5-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190614003350.1178444-5-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:46PM -0700, Tejun Heo wrote: > From: Chris Mason > > btrfs_schedule_bio() hands IO off to a helper thread to do the actual > submit_bio() call. This has been used to make sure async crc and > compression helpers don't get stuck on IO submission. To maintain good > performance, over time the IO submission threads duplicated some IO > scheduler characteristics such as high and low priority IOs and they > also made some ugly assumptions about request allocation batch sizes. > > All of this cost at least one extra context switch during IO submission, > and doesn't fit well with the modern blkmq IO stack. So, this commit stops > using btrfs_schedule_bio(). We may need to adjust the number of async > helper threads for crcs and compression, but long term it's a better > path. > > Signed-off-by: Chris Mason Reviewed-by: Josef Bacik Thanks, Josef