Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5631533rwb; Tue, 1 Aug 2023 05:55:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlFK9nduew/kz2GSYudXbKC8A6KlMP/YJE2Bj06gsfHbu5kSOD5o3pvh47PH/f0RIOp4FIo0 X-Received: by 2002:a17:906:73d8:b0:99b:499d:4635 with SMTP id n24-20020a17090673d800b0099b499d4635mr2370774ejl.75.1690894547288; Tue, 01 Aug 2023 05:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690894547; cv=none; d=google.com; s=arc-20160816; b=kWVQbBgyaIW6Sy6i3nA3FPkVjdwromFLqDQm7Qm2Aek1fySj47AoX6NxhPA3aMU+9O MOqqBG8SXzoy6EDO+Uos+YpFENMgHZ0+T4Wdjd5bmRi4evdRUAziEGnrJXBny7QgE6i/ FV8Dw1qKtfGaDOfesUuQ6RFR3wPIWPc8v0znyeQ2qXr/pE+yesmxZ8ZQaDEFgyK8Hoqh ULQLFug3mWeAKIJNvLVi3zCjN10WhyV/HitNUI2woecR3OiCeaBkUHkX+7trneF+QgDQ x8nKUi4eKrMnix3Bk0dBrqI2KUt2YnXanPVeoCymgxQtL+aujo9BUtIBYXCvrPqgHkS1 0vfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=2Bg3vuHDK1chesb8Cvwh0EPT81VwLYoy6o1zjsPyDao=; fh=AC/kekPizW6tyh1k1U9rLcc+hjcSz1hIdWpNVGsQuJU=; b=v8W5uTvpUHTcd7+uq4ADB7pet4b1+GQ2KvCd48q0CLnNJtpxeIWBlA4ST8mveKD7ds TwEwYAe/jK8b8ZZKay9KZ3/JtHwEH3+kmBdPR/jQ9gtfkphNUpC+hW9DC+gE+EmwrSjA ZYee+OrppmHbPFSktX6lYs/e8tHqMIuaESZhUkgqp7O3bwU7TYp7I6bF3JOY4UjELlyH 3WHX1Ow0gdDbAQkSjOt5092p5NINrbZXuzAvJz1KElKl1OF71XGlhmUIPTUGMIV7zK4o C8wMNE8QZGVGZPPxSWnbjCO6cExFB88wqz+vfIw33tJtYCGNk2E/0JbHadMwAvOonFY+ 8klw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@metaspace-dk.20221208.gappssmtp.com header.s=20221208 header.b=E6qw1wML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020a17090629d400b0098e1bbc3daesi8357109eje.731.2023.08.01.05.55.22; Tue, 01 Aug 2023 05:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@metaspace-dk.20221208.gappssmtp.com header.s=20221208 header.b=E6qw1wML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231265AbjHAMN1 (ORCPT + 99 others); Tue, 1 Aug 2023 08:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230509AbjHAMNZ (ORCPT ); Tue, 1 Aug 2023 08:13:25 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C491990 for ; Tue, 1 Aug 2023 05:13:23 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fe167d4a18so33149995e9.0 for ; Tue, 01 Aug 2023 05:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metaspace-dk.20221208.gappssmtp.com; s=20221208; t=1690892002; x=1691496802; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=2Bg3vuHDK1chesb8Cvwh0EPT81VwLYoy6o1zjsPyDao=; b=E6qw1wML4+ZXUwDdL1Ej+y95ntDPygJiIhKDTHKYrn41FGkIC7CN++dKrHWleWOVPB afucCNg7x1yucKeOqzafkDMo/yB2zMetdAl28+Ze26wP2fCJPiEx6RtzH2GHCotEQp20 RQs1S5dP633qmtjFXFkeBtZWd0iBp9dLqG4Fi2HaeH5+3w/kGdCL8pTy29U02UM9n7aC +Dy1jJP6vRZ7Qpv2xMXp61YVqQ41Qn7DCpMFyuepijOGA29yjAQHllouccd+A0MrGgF4 N/RmI+Ld4oCJZ2kG5oZoqn6sKDvviQcx30dHe8986ow7E4xwfvWBTEzHhugVDtELk2Ju DAIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690892002; x=1691496802; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2Bg3vuHDK1chesb8Cvwh0EPT81VwLYoy6o1zjsPyDao=; b=N6Uosuobqbgkx/MJqUi1yrYtVhNFkbXhvCYHQQ8O22IgQJAQZHKUJ8OHg6rkfSRD93 oFoZbLFJ4gjKIpe3geKlIs42N2MM1iIGSXMeptkNPgeym5ntzhNbdezbDnpY/m7wbbNz xA2YrkcKhPljIzZwBuR4fipDDetmbDTcJprzlkZ3ACa1v2gbYTy1aQxEFp2JNmO4cKD4 2ITwkMUJfVndmq2EjB1+FL0U61vCSajjyqLD6Gex+mzNHh2jf+Z5k1lsszKp9Xz1Y2hF sYW1Q7lgb2jSKXUhK3Cu771mJL1315Z/jExDeFzb3uWwJlF7rEVvdeAkz+Epc9wtJ7Fi Foug== X-Gm-Message-State: ABy/qLZ0dROcZgUwKYFJ7v8JqpizAfdXbykCfLcGHZZKwy4cbYFi08jn 4G9I6lTSZzYyi+hGqdHqcm22/w== X-Received: by 2002:a1c:6a0e:0:b0:3fd:2e89:31bd with SMTP id f14-20020a1c6a0e000000b003fd2e8931bdmr2347615wmc.14.1690892001367; Tue, 01 Aug 2023 05:13:21 -0700 (PDT) Received: from localhost ([147.161.155.108]) by smtp.gmail.com with ESMTPSA id w17-20020a05600c015100b003fbfef555d2sm16518134wmm.23.2023.08.01.05.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 05:13:20 -0700 (PDT) References: <20230714072510.47770-1-nmi@metaspace.dk> <20230714072510.47770-3-nmi@metaspace.dk> User-agent: mu4e 1.10.5; emacs 28.2.50 From: "Andreas Hindborg (Samsung)" To: Niklas Cassel Cc: Ming Lei , Matias =?utf-8?Q?Bj=C3=B8rling?= , open list , Damien Le Moal , Jens Axboe , "gost.dev@samsung.com" , "hch@infradead.org" , Johannes Thumshirn , Aravind Ramesh , "open list:BLOCK LAYER" , Hans Holmberg , Minwoo Im Subject: Re: [PATCH v9 2/2] ublk: enable zoned storage support Date: Tue, 01 Aug 2023 14:11:56 +0200 In-reply-to: Message-ID: <87il9zot9c.fsf@metaspace.dk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Niklas Cassel writes: > On Fri, Jul 14, 2023 at 09:25:10AM +0200, Andreas Hindborg wrote: >> From: Andreas Hindborg > > Hello Andreas! > >> /* for READ request, writing data in iod->addr to rq buffers */ >> @@ -1120,6 +1404,11 @@ static void ublk_commit_completion(struct ublk_device *ub, >> /* find the io request and complete */ >> req = blk_mq_tag_to_rq(ub->tag_set.tags[qid], tag); >> >> + if (io->flags & UBLK_IO_FLAG_ZONE_APPEND) { > > Do we really need to introduce a completely new flag just for this? > > if (req_op(req) == REQ_OP_ZONE_APPEND) > > should work just as well, no? Makes sense, thanks. BR Andreas