Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp573767ybt; Fri, 10 Jul 2020 07:12:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVE5SG/FAJHZXChQn/vV3YHdGKxD9nQApvuRral7j0AtSfy1pQLR46XSyNOHbfcvdWBChb X-Received: by 2002:a17:906:35ce:: with SMTP id p14mr60779671ejb.514.1594390371081; Fri, 10 Jul 2020 07:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594390371; cv=none; d=google.com; s=arc-20160816; b=vbzZk1FKfO90+YxPi983kEbCCJ3ftP3urMEnf6xPhhzKIxwNdQ0+ZhNoyxMt/Stfoi 5SgeuE+33YZrWcvqHgXNjwDnjv7WKhMzIPzv/9tPNn8ho295+9//2asFmc3v9WuiKMif sHMZ3o3RS1Fy2yaB4XNUqGSRxnIuiSGzK7ymJFkY+Iy5YbyIb/1Fuuvbh0SbaAyEKOCJ tEZIA6tMwIv9wB9yH6RFcD5vwSnyL6pN2YLJ7ViS6Qsm1r1d3cb0EV2C6XRgiWrXqHKr Fueig5vPsuiVYCG5nBRacKtY8mpyepokqkC5tUDiPem3A7PW1bK5+ZJCKtfyKK2b2GL6 3ZGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=GkJUhDwEWg19k+flxmmMGIck6ztbcEd5EG3ERyiHHYM=; b=KiwpW/S3uuXqEEwnzjX09seRnKqM1gBn5gn4j/mSq47ngybMuDOmDolCQuIJ7lz3qD WD51Wu+rPdpLy2FArDHNS/ASQLOuY1oYRTMSbU4J0RUf+vq4UHWVD8S48pAQpUEHL6Q+ h6fuVVSb1Fj8JPzkCO2aLAAQOd6+tuKUxRFv8S/GXwUaR9wt32iC+AQ8xcqSzWW1rqA+ EWSuAvO4woWdx7po1qdy8B+u+bU61PpMAFKK+5BbabRaKiGs4zZUOZGbjHbU6SYoWDfk MkGuMswcPLvAgqQ0Ry3Lqxa3EHwoWo8SrCoJkq6TSn1wAZKMl96Zf00YfDh2Ztn8hXeY zVmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=fuJTfU5f; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si3674561ejd.213.2020.07.10.07.12.27; Fri, 10 Jul 2020 07:12:51 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=fuJTfU5f; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728072AbgGJOJj (ORCPT + 99 others); Fri, 10 Jul 2020 10:09:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727086AbgGJOJg (ORCPT ); Fri, 10 Jul 2020 10:09:36 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75FD3C08E806 for ; Fri, 10 Jul 2020 07:09:36 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id d18so6174773ion.0 for ; Fri, 10 Jul 2020 07:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.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=GkJUhDwEWg19k+flxmmMGIck6ztbcEd5EG3ERyiHHYM=; b=fuJTfU5frNftoB2nOBvhj+jH0w0v7UZBt3PnRDu7UtC8P7Sjj1DqVomTFixtOge9ng pEAvE7Ed2zvkR8YDMoTElqae1xCMERl72kzobWs8n3Q08z3K1TqZfDI/df8oUG5w6ou1 FvwJ4Qt9KvhC8Suq6E9kP7Ffdr64WsPcUDDBnUVRgvxBs6HYsmpINdpOA652MjrafdJ0 //BgRQgnQ6kcjVnz5c0X2FZYU01+No7t4lPdlw6X5GFu5PHuecm10X3Xi7IjZlie1f8L hYUamcPROy8+F7Grc28Rq5/qJsOhRSzAmkvgu9beFuD+suZDnIDHiuSXBFu0Dj78eLeo t+WA== 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=GkJUhDwEWg19k+flxmmMGIck6ztbcEd5EG3ERyiHHYM=; b=Ee9fJ4/uQVD+Ea8ivhVr1JgRks8BCbO0WnFuAzhB7GDFWl4lFie3R0s1SdjRcrwySC 8JIwytwy2mpt7w3MPDjpsQz2KLdGgFIOU9Ee9JTSTWeYMKWwKHE2NWPBFCCF4twdN9O+ GRz1r1Csna34ZHJUpjuOPoC7W4ZsWABzpXzCg5hNyojkgj9FkTlQRdEn0ChD9kRsEHmX xtfuBF0n8a//1IrvLHXmJN9dTK2ZgDPpiV5a4+SC9JiCGUTU0PYQ/kIj1n5qFwRQnO2B YdAz3k7oBYAM2pT8ujGWxRJXn2Tp32gqioNK+yHM8n/Ga9x5e2OyEAs5VnXRWQVbI9RE eJ+w== X-Gm-Message-State: AOAM533h3fFtccLAHEdrUzImJztH6o8PQFePNLNcbnlmCGztraMYhzIk 9Sv5aQnuUlxiX4jc1Aeh9IJMvw== X-Received: by 2002:a02:70d4:: with SMTP id f203mr80267571jac.74.1594390175673; Fri, 10 Jul 2020 07:09:35 -0700 (PDT) Received: from [192.168.1.58] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id z9sm3564606ilz.45.2020.07.10.07.09.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Jul 2020 07:09:35 -0700 (PDT) Subject: Re: [PATCH v3 4/4] io_uring: add support for zone-append To: Christoph Hellwig , Kanchan Joshi Cc: 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 References: <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> <20200710131054.GB7491@infradead.org> From: Jens Axboe Message-ID: <9e870249-01db-c68d-ea65-28edc3c1f071@kernel.dk> Date: Fri, 10 Jul 2020 08:09:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200710131054.GB7491@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/10/20 7:10 AM, Christoph Hellwig wrote: > On Fri, Jul 10, 2020 at 12:35:43AM +0530, Kanchan Joshi wrote: >> Append required special treatment (conversion for sector to bytes) for io_uring. >> And we were planning a user-space wrapper to abstract that. >> >> But good part (as it seems now) was: append result went along with cflags at >> virtually no additional cost. And uring code changes became super clean/minimal >> with further revisions. >> While indirect-offset requires doing allocation/mgmt in application, >> io-uring submission >> and in completion path (which seems trickier), and those CQE flags >> still get written >> user-space and serve no purpose for append-write. > > I have to say that storing the results in the CQE generally make > so much more sense. I wonder if we need a per-fd "large CGE" flag > that adds two extra u64s to the CQE, and some ops just require this > version. I have been pondering the same thing, we could make certain ops consume two CQEs if it makes sense. It's a bit ugly on the app side with two different CQEs for a request, though. We can't just treat it as a large CQE, as they might not be sequential if we happen to wrap. But maybe it's not too bad. -- Jens Axboe