From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDF6DC4332D for ; Tue, 12 Jan 2021 15:56:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9307C2070E for ; Tue, 12 Jan 2021 15:56:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392593AbhALP4Q (ORCPT ); Tue, 12 Jan 2021 10:56:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392580AbhALP4P (ORCPT ); Tue, 12 Jan 2021 10:56:15 -0500 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2839CC061786 for ; Tue, 12 Jan 2021 07:55:35 -0800 (PST) Received: by mail-qt1-x835.google.com with SMTP id z9so1828597qtn.4 for ; Tue, 12 Jan 2021 07:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kfo++mRTL0+axUxWJs/4HvDJ6pxImj+mNKCIx5TUXoU=; b=xGJF3yku02dY26UYTGGpZbqZfQxcAp+6Qzt2XNHQjdd9XUfeNY7R1yMFh7puBmfkO5 vy5bkL826cqp0RPAesd8Ipyt9474pIgSyuWPDVOD2IeyB7Y13NUlIg+mkdI5FVnFvghb thu4A73yNFY7/gINVY9YkQiMX5weiJjHYE2DYiBx8E/4PNJCoHjF8lFeOQdKc5QY37nF 1KpNqdPhFxyKrCjSzdFh0zL9mn/+SfXvlXjwH+Ivb0+lpoURzAK1OUpIAW6iAxU8pi7V u9iejKbp5WMKfaF6CQxrNgoCZarEeKS9WhJGuNZjFdJ+DaXy+z3WRyniGnghp+24Y+iY 0pWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kfo++mRTL0+axUxWJs/4HvDJ6pxImj+mNKCIx5TUXoU=; b=cPCKoIp4qGwz5AnRrmGy23BSBxBpCkQHwWvdBjtWm7rXkXhoJqk/R0w1fUtf5lsC9w KTXxV3+aRZtdevKmj7PSkCoiWCJzI2qEi8mHjXkEUnwssoD9tXK8aPLnWiRkHOvE8jsN AMTaxVM0ryJRxoYxPuFoerVzHW1uo9UeWBRs+Ph7vn0aj+8XISIzbIFEC4R4h7WEqEXo Gnx9H3OjuP0YKV7PrWd7TpzbYPulZK9/94rrngeX/5wLzWbTtjEiFIGYddOB6rcXZ/68 eHq67ZzCbQQgnt73mdvFy6z0CfEFUjO/kFNpo1TpuM01j5Bt9MA9OYFOxbzNKe7r/Nf1 NtJg== X-Gm-Message-State: AOAM530YTsqKgudUAU/ynY/cyIjJ+mXz+EGcZOynyF//cTNfi08p59FR rZk7NUgHARdhhNbsDiS0ry818A== X-Google-Smtp-Source: ABdhPJz4s8XbFEn7uo62lz2TFOmSAIO0nb+4mCp7Z4OUicaueYU1jBWa52KbMgZVdmVbpzWuFjyhyQ== X-Received: by 2002:ac8:7a81:: with SMTP id x1mr5153381qtr.373.1610466934341; Tue, 12 Jan 2021 07:55:34 -0800 (PST) Received: from [192.168.1.45] (cpe-174-109-172-136.nc.res.rr.com. [174.109.172.136]) by smtp.gmail.com with ESMTPSA id x47sm1248239qtb.86.2021.01.12.07.55.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jan 2021 07:55:33 -0800 (PST) Subject: Re: [PATCH v11 20/40] btrfs: use bio_add_zone_append_page for zoned btrfs To: Naohiro Aota , linux-btrfs@vger.kernel.org, dsterba@suse.com Cc: hare@suse.com, linux-fsdevel@vger.kernel.org, Jens Axboe , Christoph Hellwig , "Darrick J. Wong" References: <06add214bc16ef08214de1594ecdfcc4cdcdbd78.1608608848.git.naohiro.aota@wdc.com> From: Josef Bacik Message-ID: <35fe0719-d947-b745-1a53-0d3903ab8e7a@toxicpanda.com> Date: Tue, 12 Jan 2021 10:55:32 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On 12/21/20 10:49 PM, Naohiro Aota wrote: > Zoned device has its own hardware restrictions e.g. max_zone_append_size > when using REQ_OP_ZONE_APPEND. To follow the restrictions, use > bio_add_zone_append_page() instead of bio_add_page(). We need target device > to use bio_add_zone_append_page(), so this commit reads the chunk > information to memoize the target device to btrfs_io_bio(bio)->device. > > Currently, zoned btrfs only supports SINGLE profile. In the feature, > btrfs_io_bio can hold extent_map and check the restrictions for all the > devices the bio will be mapped. > > Signed-off-by: Naohiro Aota Reviewed-by: Josef Bacik Thanks, Josef