Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp543778ybt; Fri, 10 Jul 2020 06:33:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQor+DrZGNYuPrebz1S9aA/D/EExqZ4T+LdNcmoDj6hr4uotLblWP0hP1M5Dial4PB/r5F X-Received: by 2002:a17:906:2641:: with SMTP id i1mr55837332ejc.380.1594388018482; Fri, 10 Jul 2020 06:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594388018; cv=none; d=google.com; s=arc-20160816; b=n2YqzgmOm1LP4LrOkJCSNVhuEB9LV7X7gbwNpXtynFASP1SbH8aEQU+DFefsynu4of B7tSkIxflczKmIheUiSXmUlo4HYyR9qoJe/EkJ9StVpIf/+q10j9jNWe40hXTaYbLKkM EgQoYgDT6kt91q/HcG/llzn5Gver5XKnkbpJ4bV/wRsASRO8uB3sVl6N9bCltnbrFd3A bEksBtBVtpL75ilJViWAtWGs77eaorC6FtE/hRlRU0s1v61tWaNnMtgZiS9UY3/hxgHd wbDP8krIjqui8nOJ/WbRO/bFg9aDQO5S/TF9KT/pBBNuokqp2qRAfi+RiLhgIPcEppyo bb3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Lae28X5NqcxG2FkZllIwJ7rLXNOqpJ0hcVAbxGcaJfo=; b=aOkz02lJvQ2kWZWcT+O3+Gm6tWGf3wGeprOTeZ+Y9kHp7/5FVUhlYwRVuGWXTaYRJK EQ9jrFQYRkro+DtUIlHVjR8aCWaYglFfxpeenkdu8rHIR/HAG4/pXbWdx/l7Q6RryDww WcoJs0qsIN+tGaupvX7pcooXUpFbyWUWlAu8s87yIagxbd0iRpfsYPLa/deTvb1k5lsd qRozyNzHsUmnPESyO17N41fTTZ/EOwaFW6+BOiMg2HBhVMox/cEF/UAddn3HzhUPNPno PQQpqLTJYZed7Xf94cc+f3+H/PtZrz/so803tQEcPpqo+2G+jRnPW26ga8TsvqoJZH/v 9WmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KcwrI94e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si3984333edq.228.2020.07.10.06.33.15; Fri, 10 Jul 2020 06:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KcwrI94e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727827AbgGJNaO (ORCPT + 99 others); Fri, 10 Jul 2020 09:30:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726774AbgGJNaN (ORCPT ); Fri, 10 Jul 2020 09:30:13 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E0E1C08C5CE; Fri, 10 Jul 2020 06:30:13 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id f18so5929094wml.3; Fri, 10 Jul 2020 06:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Lae28X5NqcxG2FkZllIwJ7rLXNOqpJ0hcVAbxGcaJfo=; b=KcwrI94ePdRwkKKuRogJd8GJW5bDThOJjUI7BVmH6y23YIeZAxnzrTIJ8aYRPDmkc1 +FIzAob5CZY0gvuCboQ/YlM0icsgy6oaztKFcopRxRuXuXpBxAPVfc/Jykb2trIlyV65 EQM2Zxb967Z+HD7G5XpF0GzM4TvfcqiCEwYE1EeuSMdfeyUVtEBhxqU+toyhzmFCnbf2 S3o1k7vViI85Rxsq6y9HQDzuWrqXfHwVjPxumG8I3jZZg0oceB02T4e0O7eUGLuvcdLa 9bO9qwRoot5hjvxXmk3y1awkmnn0kg4QeJDkzVLchkWVtGf0nux2hmglYpva45PAFfR6 876g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Lae28X5NqcxG2FkZllIwJ7rLXNOqpJ0hcVAbxGcaJfo=; b=nnN7lFH1HYsY46JT/Spb5+oThT7GJN3oB8mCY4FwvPvJkQdpwwssBxbd5O2kTBM1ex i4ISQISo7zHfdJ95Nzmra2HYJLxoPpegO9X7l4qn68Yn5YrRfy2LjYfa2YOlM3WlW9Zm /fTe0c6PhccleszEeNFMuRSqsDyzWKBRyf4eH4QBvlo4ZRgjc5TKniWl+mGohuwnj5L3 QTnha61SOqPQnWRPA70CblcmDP1ipkJlZY2cW9h6oJwpee2XFvgqMDc2pdzak3uF8OfD OpCDJrHyDbkKWZeMrhzbbEfnX9H36wdRW5SkF5mcs2BJ1sjOByB3nXMoWQZ6a7eYcv4g hJnA== X-Gm-Message-State: AOAM531rYXUuBN8xusyef0pBj2FEpq3dEs6I9x8JNzNPPeZ3mMxMbrra eu6OCEJDEgHxwzpbHfoA5V/ckMWu6ImXpT9+6Dc= X-Received: by 2002:a7b:cc92:: with SMTP id p18mr5455500wma.4.1594387811885; Fri, 10 Jul 2020 06:30:11 -0700 (PDT) MIME-Version: 1.0 References: <1593974870-18919-1-git-send-email-joshi.k@samsung.com> <1593974870-18919-5-git-send-email-joshi.k@samsung.com> <20200709085501.GA64935@infradead.org> <20200709140053.GA7528@infradead.org> <2270907f-670c-5182-f4ec-9756dc645376@kernel.dk> <20200710130912.GA7491@infradead.org> In-Reply-To: <20200710130912.GA7491@infradead.org> From: Kanchan Joshi Date: Fri, 10 Jul 2020 18:59:45 +0530 Message-ID: Subject: Re: [PATCH v3 4/4] io_uring: add support for zone-append To: Christoph Hellwig Cc: Jens Axboe , Kanchan Joshi , viro@zeniv.linux.org.uk, bcrl@kvack.org, Damien.LeMoal@wdc.com, asml.silence@gmail.com, linux-fsdevel@vger.kernel.org, "Matias Bj??rling" , linux-kernel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, Selvakumar S , Nitesh Shetty , Javier Gonzalez Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 6:39 PM Christoph Hellwig wrote: > > On Thu, Jul 09, 2020 at 12:50:27PM -0600, Jens Axboe wrote: > > It might, if you have IRQ context for the completion. task_work isn't > > expensive, however. It's not like a thread offload. > > > > > Using flags have not been liked here, but given the upheaval involved so > > > far I have begun to feel - it was keeping things simple. Should it be > > > reconsidered? > > > > It's definitely worth considering, especially since we can use cflags > > like Pavel suggested upfront and not need any extra storage. But it > > brings us back to the 32-bit vs 64-bit discussion, and then using blocks > > instead of bytes. Which isn't exactly super pretty. > > block doesn't work for the case of writes to files that don't have > to be aligned in any way. And that I think is the more broadly > applicable use case than zone append on block devices. But when can it happen that we do zone-append on a file (zonefs I asssume), and device returns a location (write-pointer essentially) which is not in multiple of 512b? -- Joshi