Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7010941ybi; Thu, 13 Jun 2019 08:07:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPvf/IISFCEWGhl7ACPcUZGjwk1A0YKyKWpPc4c1QzXXJhucNZEqpfCYeyoQ8LXPmQT3rj X-Received: by 2002:a62:e20a:: with SMTP id a10mr8336782pfi.64.1560438436018; Thu, 13 Jun 2019 08:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438436; cv=none; d=google.com; s=arc-20160816; b=GInZwmR8PJXHaPllgvS8Zgar/T6yNxrbSd1REP3kTiI0G0hN+XiUoS3u7ZmyBQsd3B TME0BaQgUZoY6tCLJVn/+ng5ky4WLreaYA/w16wKbEyXMHlGMCVGivG+76VgK3gn+TIT mT2IqvQW/2yRef+E4U5NrrMKGUfNeM0wOKf400lmxQmMDU4j5v+Kbm1B1sEvnUPXaq/9 0/nbQkJbgQKO2m9M0kAQd9S9bSGTVC1J3ApSfufqCXWG8MrNHwx3e7BsPYCyuWVur/ph wuOpM5pqfvQoYASOHdEr4oa3z2nDjjbpzX330CuIZirt04A61Km6aED/sj1pzPFej8SL idAQ== 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=IdWKzce3sZz9+VK0mMGhceU7W1z4LrhQkC1c9OeYugc=; b=DuzgSdWW/C+7B9vlEGHIVqLobqh0Ir49x62gTgz1EshLAzZPQN9EXsXCat2tOXZXk7 hFK2k1eac2nznJXkcf2JtygXCOF43NVAYd4zWo6EoI1kvELjigxmdRVjQRI7VcAcySoC lMkrn+zgF+JFDr78V3khh25/M1MuQHmTqpvg3NZPYulLCRgU+v1rW3lr4KrlzQReHdRx cWmeuOTPZiQidaTuA0jRFdBvEF4iXug/ytxBhT7002GEtRvAHGLgXc8EFYNP6ES1xugg hHWei5GH8XUavxBKo629cKk8NTkyARamn7MGwXO0CnrsuIF/6E3Y7DkfTtfbC7SR95Tw MjHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=oP6ERCa1; 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 f12si3405062plo.100.2019.06.13.08.07.00; Thu, 13 Jun 2019 08:07:16 -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=oP6ERCa1; 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 S1733210AbfFMPFB (ORCPT + 99 others); Thu, 13 Jun 2019 11:05:01 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46734 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732461AbfFMORK (ORCPT ); Thu, 13 Jun 2019 10:17:10 -0400 Received: by mail-qt1-f195.google.com with SMTP id h21so22668784qtn.13 for ; Thu, 13 Jun 2019 07:17:09 -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=IdWKzce3sZz9+VK0mMGhceU7W1z4LrhQkC1c9OeYugc=; b=oP6ERCa1F6T8r6pSHlZINu6LknBTF+UPLpwmpRJcH+T6FdeYawjrBm7oQ0iaSVxmjD LZmwbZomBs1w1G2Z2uECjOVu4ctdMmjAbGswoZajXSueNHfNEi2kDdbB0eo5K/L6TPX7 gZDgT2bbG1XJxfKdQTmNc/rRjKzTRncWVcJVin9R+eQOLHXhMw81x04KLiHKKskUszQf ZBhBJw5X9u7/w7EZhQAiKlEqEZsI6T8SkRldzr2n/0VkSPQGDovwNcD8pbdF8P8kD9fH yrx5FvRP/YCxnPdJUo/PdMnD9HHxHisaI1pK2EJyShl5GyzSbTt0LN5tNALrEQUHkLxB Gsyg== 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=IdWKzce3sZz9+VK0mMGhceU7W1z4LrhQkC1c9OeYugc=; b=X/2g5K2wmsMXUfAWg0sDwKZwkaKO0LrgrrCGH9w0NZCJhO+ZvQW+4DN1jmoDedTrL1 YxIrItsUfMt5yzxO+ISgCr3nsux3vIAgptU4QOcm24Evbqgm1eFP78BoYcxQXk71xUxJ KlxFpsVh+k2B8oGnvtN+OQ2zXwivFMMfVHSe0cRghGOWnoCsa8PXj9bJC1hg0dL0bvR5 PddPZRTEf/Mxj0HYRnQIyz8IVP3/kD16Ia8YdBEQqXMB6pVWnBb+c/evfOVT+wFFzpJD WN6hwe1waFfAdkSma+jmGP+5ZsCcyd5W8KnjLeSBhVkyOBISt46LSyCyJzmR7G/+HM11 SXkA== X-Gm-Message-State: APjAAAX4WpGZ1PFc8u8ToKGUaPMBcG+wd2xr+Kh2sURikfPkrfAiCJkQ SBklm/JvnxQ+0J8Ge7roR3b9fQ== X-Received: by 2002:ac8:25dd:: with SMTP id f29mr66160028qtf.144.1560435429256; Thu, 13 Jun 2019 07:17:09 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::9d6b]) by smtp.gmail.com with ESMTPSA id 102sm1338356qte.52.2019.06.13.07.17.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 07:17:09 -0700 (PDT) Date: Thu, 13 Jun 2019 10:17:07 -0400 From: Josef Bacik To: Naohiro Aota Cc: linux-btrfs@vger.kernel.org, David Sterba , Chris Mason , Josef Bacik , Qu Wenruo , Nikolay Borisov , linux-kernel@vger.kernel.org, Hannes Reinecke , linux-fsdevel@vger.kernel.org, Damien Le Moal , Matias =?utf-8?B?QmrDuHJsaW5n?= , Johannes Thumshirn , Bart Van Assche Subject: Re: [PATCH 13/19] btrfs: avoid sync IO prioritization on checksum in HMZONED mode Message-ID: <20190613141706.tbxc5wufplfybfib@MacBook-Pro-91.local> References: <20190607131025.31996-1-naohiro.aota@wdc.com> <20190607131025.31996-14-naohiro.aota@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607131025.31996-14-naohiro.aota@wdc.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 07, 2019 at 10:10:19PM +0900, Naohiro Aota wrote: > Btrfs prioritize sync I/Os to be handled by async checksum worker earlier. > As a result, checksumming sync I/Os to larger logical extent address can > finish faster than checksumming non-sync I/Os to smaller logical extent > address. > > Since we have upper limit of number of checksum worker, it is possible that > sync I/Os to wait forever for non-starting checksum of I/Os for smaller > address. > > This situation can be reproduced by e.g. fstests btrfs/073. > > To avoid such disordering, disable sync IO prioritization for now. Note > that sync I/Os anyway must wait for I/Os to smaller address to finish. So, > actually prioritization have no benefit in HMZONED mode. > This stuff is going away once we finish the io.weight work anyway, I wouldn't worry about this. Thanks, Josef