Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp185183ybt; Mon, 6 Jul 2020 07:02:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaIAUfXX8YOuQXkGZaZZcP/F2/2Hhr1GDyp+3b7k427qvlg4R5Nt/fVG21s/iIc72uXxge X-Received: by 2002:a17:906:3c56:: with SMTP id i22mr32247250ejg.12.1594044153511; Mon, 06 Jul 2020 07:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594044153; cv=none; d=google.com; s=arc-20160816; b=jnZZBAfFTfWY5aQHEQvv10AO222efue3oreK1FqzcGYGS28+fTkrmgrI+2ZKrMF7bM hpC/hkIM0V1ooOArlrpwVORzWqW0RviO94Nt34p/9Xp5acw0/iOCYwWgvVOPoitpMHHW 7wcbiQRERI8fZHfRazrtcvcA591sVAjBkYZjs25uSIkzx080lA0daJSxYzmNj9DwoYXi 9OwSemt3vEzgmyRDGNBhODxDqdBFCA4JXYnPcFC3zLv12aHuMM32WpwcOdLqoVN5vbYE ZhDHso12p/V6OK/rJ8KGTGb80DrVxffTRmYHr32S8Mj0gUXVd3a7W0HLzshyNqRfCrbV VpyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:user-agent :in-reply-to:mime-version:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=r/dgxZFDzwndXBBLDY9ZULIdgyOK//Icnp95tJ9Cro8=; b=i1HYDCpASGzgex8OEc4jJ93nYLBeel4KQVM2XLEZ2n08oPfdFKiuYVZ+Fw0wl6E0xL at7DSZPO6NceM7MHMFI+DP7yuuerXa9YETI5oozGYIrQmWgmTgPdXbn6nZwendoELUTQ cOc9nPJPt3VbvA04rgSiiv8QJYNGDI97UtTiCxsdHYKUinBFiKlngE9YHkux/HnYrxzc qAj5mqRlw1+NhbFJxMUqyXKPt8E28rD6m0yLwPSWKagkZThnTMlLM7J0RGIdq+Kpy+5e 2kwfYnK+jcZOBTg+fFs6jFZrh0cdDBoP1CHUK31CE64pJNONdy1lsAA8wZctQAzpva1I ZUpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hEzJM6ht; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si13447195edc.220.2020.07.06.07.02.10; Mon, 06 Jul 2020 07:02:33 -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=@samsung.com header.s=mail20170921 header.b=hEzJM6ht; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729231AbgGFOBm (ORCPT + 99 others); Mon, 6 Jul 2020 10:01:42 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:32158 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729205AbgGFOBl (ORCPT ); Mon, 6 Jul 2020 10:01:41 -0400 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200706140139epoutp0189bee98ac879cbf6e5c277051f957562~fLqm1lVPC1106011060epoutp01R for ; Mon, 6 Jul 2020 14:01:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200706140139epoutp0189bee98ac879cbf6e5c277051f957562~fLqm1lVPC1106011060epoutp01R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594044099; bh=r/dgxZFDzwndXBBLDY9ZULIdgyOK//Icnp95tJ9Cro8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hEzJM6ht6xotFTo83+Rdy0BaN3x1yc4HxLMnWlXbhikorSefWHBS6BGn7ebDL9As/ eiy8sZznX1ES8is8qU5j61Wm131FLCagnQd510zBJVDBOWzljwg5/XEg4bvgJ1TvUG +s+NpTw0nP8mVpm7z11yJqEaQYFsKAMV4XmLx5h0= Received: from epsmges5p1new.samsung.com (unknown [182.195.42.73]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20200706140138epcas5p16f6bc1001884616e44e50f407fc840a4~fLqmNZuNJ3229432294epcas5p1v; Mon, 6 Jul 2020 14:01:38 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 4B.6D.09467.2CE230F5; Mon, 6 Jul 2020 23:01:38 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20200706140137epcas5p338bac6dd19a756290dd75134c48760d3~fLqlCBYnJ3117831178epcas5p3K; Mon, 6 Jul 2020 14:01:37 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200706140137epsmtrp20352bcd7b6da4097db7205248976d35c~fLqlBHgOC0630006300epsmtrp2w; Mon, 6 Jul 2020 14:01:37 +0000 (GMT) X-AuditID: b6c32a49-a3fff700000024fb-66-5f032ec2a1c2 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 94.0C.08303.1CE230F5; Mon, 6 Jul 2020 23:01:37 +0900 (KST) Received: from test-zns (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200706140135epsmtip198d637b3809f86e0420f957158fb5dec~fLqiuOKev1018210182epsmtip1c; Mon, 6 Jul 2020 14:01:34 +0000 (GMT) Date: Mon, 6 Jul 2020 19:28:39 +0530 From: Kanchan Joshi To: Jens Axboe Cc: viro@zeniv.linux.org.uk, bcrl@kvack.org, hch@infradead.org, Damien.LeMoal@wdc.com, asml.silence@gmail.com, linux-fsdevel@vger.kernel.org, mb@lightnvm.io, 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 Subject: Re: [PATCH v3 4/4] io_uring: add support for zone-append Message-ID: <20200706135839.GA23212@test-zns> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHKsWRmVeSWpSXmKPExsWy7bCmuu4hPeZ4g9Yz+hZzVm1jtFh9t5/N ouvfFhaL1vZvTBanJyxisnjXeo7F4vGdz+wWU6Y1MVrsvaVtsWfvSRaLy7vmsFms2H6ExWLb 7/nMFq9/nGSzOP/3OKsDv8fOWXfZPTav0PK4fLbUY9OnSewe3Vd/MHr0bVnF6PF5k5xH+4Fu Jo9NT94yBXBGcdmkpOZklqUW6dslcGU839LPUnCHt+LHvbVsDYw7uLsYOTkkBEwk3t6cz9rF yMUhJLCbUWL1rlZGCOcTo8TbPVvZIJzPjBLPWtazwrT0bT7ABJHYxSjxd+cCKOcZo8TxI3uY QapYBFQkXiz/B9TOwcEmoClxYXIpSFhEQEGi5/dKsKnMAt3MEnc6G8HqhQUcJT7vPMkIYvMK 6EqcfLieDcIWlDg58wkLyBxOAVuJYwcjQcKiAsoSB7YdB9srIXCFQ2Ju/wI2iOtcJKZu72KH sIUlXh3fAmVLSXx+txeqplji152jzBDNHYwS1xtmskAk7CUu7vnLBGIzC2RIXDg2Ecrmk+j9 /YQJ5AgJAV6JjjYhiHJFiXuTnkJDRVzi4YwlULaHxLHmC9BA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wPE5BSwlTh2MBKkQlRAWeLAtuNMExgFZyFp noWkeRZC8wJG5lWMkqkFxbnpucWGBUZ5qeV6xYm5xaV56XrJ+bmbGMExp6W1g3HPqg96hxiZ OBgPMUpwMCuJ8PZqM8YL8aYkVlalFuXHF5XmpBYfYpTmYFES5/06a2GckEB6YklqdmpqQWoR TJaJg1Oqgan4CZ9rdO6p/wqCHwLF1y00S96z9ayH54+G368kta2lttdM3LvM7KvQVO59/95m xa170en/30L3XeXvhOptB4SCVL8lW6yUbTU+2ivIn9wnumDnV4s4HTXxc2GSKx+kFSWz/Hy4 5vT3D0VxVpKG6U+kVm3iPynGsi5/z0KO+zVroj0Vd5X7M7ILse3/MUn+nUOd4FMTraerf3Rm RsvmO3yy+7tsbm3UmSvlc3u3sxs9sNqwWb32ilBBxD0lb/n74R/mJhupf68XOZt9qEPlXPNT z0DuR7NCdhuebNdlTOD4Hln3822keamZdPPi59p9GQc/zrggUVvzs0U+dfdfllju2M+XvSI+ 99zlvm5spsRSnJFoqMVcVJwIADMMuSAoAwAA X-CMS-MailID: 20200706140137epcas5p338bac6dd19a756290dd75134c48760d3 X-Msg-Generator: CA Content-Type: multipart/mixed; boundary="----RtrVgMPcOOSLrhJloRVgptxhQONXYtyOWZJ9JvnugceJtZ1T=_db49e_" CMS-TYPE: 105P X-CMS-RootMailID: 20200705185227epcas5p16fba3cb92561794b960184c89fdf2bb7 References: <1593974870-18919-1-git-send-email-joshi.k@samsung.com> <1593974870-18919-5-git-send-email-joshi.k@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ------RtrVgMPcOOSLrhJloRVgptxhQONXYtyOWZJ9JvnugceJtZ1T=_db49e_ Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Disposition: inline On Sun, Jul 05, 2020 at 03:00:47PM -0600, Jens Axboe wrote: >On 7/5/20 12:47 PM, Kanchan Joshi wrote: >> From: Selvakumar S >> >> For zone-append, block-layer will return zone-relative offset via ret2 >> of ki_complete interface. Make changes to collect it, and send to >> user-space using cqe->flags. >> >> Signed-off-by: Selvakumar S >> Signed-off-by: Kanchan Joshi >> Signed-off-by: Nitesh Shetty >> Signed-off-by: Javier Gonzalez >> --- >> fs/io_uring.c | 21 +++++++++++++++++++-- >> 1 file changed, 19 insertions(+), 2 deletions(-) >> >> diff --git a/fs/io_uring.c b/fs/io_uring.c >> index 155f3d8..cbde4df 100644 >> --- a/fs/io_uring.c >> +++ b/fs/io_uring.c >> @@ -402,6 +402,8 @@ struct io_rw { >> struct kiocb kiocb; >> u64 addr; >> u64 len; >> + /* zone-relative offset for append, in sectors */ >> + u32 append_offset; >> }; > >I don't like this very much at all. As it stands, the first cacheline >of io_kiocb is set aside for request-private data. io_rw is already >exactly 64 bytes, which means that you're now growing io_rw beyond >a cacheline and increasing the size of io_kiocb as a whole. > >Maybe you can reuse io_rw->len for this, as that is only used on the >submission side of things. Yes, this will be good. Thanks. ------RtrVgMPcOOSLrhJloRVgptxhQONXYtyOWZJ9JvnugceJtZ1T=_db49e_ Content-Type: text/plain; charset="utf-8" ------RtrVgMPcOOSLrhJloRVgptxhQONXYtyOWZJ9JvnugceJtZ1T=_db49e_--