Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp659074ybt; Wed, 17 Jun 2020 10:31:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGu3wHBMsSM3cxIQ1QS6+rI4S/aT6RhSc9KH0dWxOGquxpnPY3jmGmp0YttQL21IRPCUMZ X-Received: by 2002:a17:906:2507:: with SMTP id i7mr191244ejb.419.1592415065466; Wed, 17 Jun 2020 10:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592415065; cv=none; d=google.com; s=arc-20160816; b=bTvIqXPXkC9WI+RAVsXC02FZBQjGfZc3MDciTDY29plQESa2gJS/2idluZwsS2lhfY sDV97CPxA+w4S4Skt3DYEEbQFVraltrS+kkTCa4qJuUQfUe8ps7+0jOmfW3ivQuEfL33 mcG2aEeJHBri8w3AB5GgXsYVFZqfwWy3lb6650NzgeS3Kre0TdB75y91KEoMRg5ub8SZ uN9E1LP0o79S0Qkhhm8allS+JLDHTfUnkcCNFJSTWGoZ5zu9oalFF2bs7CDycf31+KZG 8dbMTsLUUl7u5t8JrYYdD8+F2lk12E2fSqrqEbqkqZwPhwKKZ8vcEkcxrWvx0IGVjJKs ZvGg== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=quPbHKvd3t/tKAk2Vd44HQREZ4TCnzbl9br8Bua5p/U=; b=orIr4e7I5Y7nZ313956Xdd4rC2ThAS4hjhreqLBUc/iMbTVYpRO/7BuPuj2jDVIBtO csUjUtSDVT7e1fFX3TOcY+4stv+rJLYJSmmOM0H6kI3ZVsOos9jc7ptGyEXFTA6bZMRI Qv1KuuyPhyAm+BJ3iQDcvscVFVWeqHwkgxLCRnoIl60IVJ6ZmAk0bPZIe41j09//bpr5 tMWUV+U5K23h+TV/FtmT6ScV8uSNnI3Rs+TRZxLa1sZvc8ZnWkkWd7RJAd6/y/EzA4XY lz0ol4WKMeW5TYFHmgeA1FIcFXq1MTHTtc/3Hpnp12Cgv/n4MVbipk3G46cYEUeRamD+ s5mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="Ns/ECDWJ"; 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 k21si396995edx.60.2020.06.17.10.30.42; Wed, 17 Jun 2020 10:31:05 -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="Ns/ECDWJ"; 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 S1726955AbgFQR06 (ORCPT + 99 others); Wed, 17 Jun 2020 13:26:58 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:54181 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbgFQR06 (ORCPT ); Wed, 17 Jun 2020 13:26:58 -0400 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200617172654epoutp03ee7118da79f62a8ea323c472e6be3fa7~ZZNZWNdyu1001610016epoutp03L for ; Wed, 17 Jun 2020 17:26:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200617172654epoutp03ee7118da79f62a8ea323c472e6be3fa7~ZZNZWNdyu1001610016epoutp03L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1592414815; bh=quPbHKvd3t/tKAk2Vd44HQREZ4TCnzbl9br8Bua5p/U=; h=From:To:Cc:Subject:Date:References:From; b=Ns/ECDWJPc4X81fFNtW7YRq8Gd/eMxlpBo+VlV8ayjCCInc1FJoAhH6/ZKvr8wFS4 6lH4XB9CKSpxxvUz27/JxNEqmEQAbGAXUL+foQ/84ZU+yFE0dapcUI4BMmr7WGRhef PXqVJSfGGDswM3UOBRP+yFW3qdOKAWMCRkgb62dY= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20200617172654epcas5p29bf502ec3f75e53e630e5ced45725658~ZZNYscZFV2352223522epcas5p2U; Wed, 17 Jun 2020 17:26:54 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 3D.66.09475.E525AEE5; Thu, 18 Jun 2020 02:26:54 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20200617172653epcas5p488de50090415eb802e62acc0e23d8812~ZZNYDZtWv0132401324epcas5p4Y; Wed, 17 Jun 2020 17:26:53 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200617172653epsmtrp19806cab50c6c159c2b00e4bbf421e4d9~ZZNYAp-BX1872618726epsmtrp1-; Wed, 17 Jun 2020 17:26:53 +0000 (GMT) X-AuditID: b6c32a4b-389ff70000002503-21-5eea525e12d2 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 71.7E.08303.D525AEE5; Thu, 18 Jun 2020 02:26:53 +0900 (KST) Received: from localhost.localdomain (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200617172651epsmtip1c8390df6b20117c9b29b6c11e6f54825~ZZNWEdhr61054210542epsmtip1D; Wed, 17 Jun 2020 17:26:51 +0000 (GMT) From: Kanchan Joshi To: axboe@kernel.dk, viro@zeniv.linux.org.uk, bcrl@kvack.org Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, selvakuma.s1@samsung.com, nj.shetty@samsung.com, javier.gonz@samsung.com, Kanchan Joshi Subject: [PATCH 0/3] zone-append support in aio and io-uring Date: Wed, 17 Jun 2020 22:53:36 +0530 Message-Id: <1592414619-5646-1-git-send-email-joshi.k@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFIsWRmVeSWpSXmKPExsWy7bCmum5c0Ks4gxcbuSxW3+1ns+j6t4XF 4l3rORaLx3c+s1sc/f+WzWLhxmVMFlOmNTFa7L2lbbFn70kWi8u75rBZbPs9n9niypRFzBav f5xkszj/9zirA5/H5bOlHps+TWL36NuyitHj8yY5j01P3jIFsEZx2aSk5mSWpRbp2yVwZdyb /IW54Ct7xdL//UwNjBPYuhg5OSQETCS+PtrECmILCexmlLhxqbiLkQvI/sQo8WfvCSYI5zOj xOeDU1hhOi5suMcOkdjFKHHk0glGuKrmLTOB5nJwsAloSlyYXApiigjYSOxcogLSyyzQwCTx /7sOiC0MFD7dvJQFpIRFQFVi6VsrkDCvgJPEl3/zmCFWyUncPNfJDDJdQuAeu0TvgcVQN7hI LPq7CqpIWOLV8S3sELaUxMv+Nii7WOLXnaNQzR2MEtcbZrJAJOwlLu75ywSymBnozPW79CFu 45Po/f0ELCwhwCvR0SYEUa0ocW/SU6i14hIPZyyBsj0kJvW0MUICLlbiy7G57BMYZWYhDF3A yLiKUTK1oDg3PbXYtMA4L7Vcrzgxt7g0L10vOT93EyM4OWh572B89OCD3iFGJg7GQ4wSHMxK IrzOv1/ECfGm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6aP/bnqbmf9i1fdOR6zV+Wm/SXu+NsdRsUx nCe4LvVmTXkQu7JTUtQlJXCaTn0xJ/eirY9VzOskrC7/mXYzk7tFzbmgQjeaq93wQFqssqNk zal/0bzdJYyZRy3NPFV7ldZkbz9TL6QXpbJclLnon/BD4fun5ojHzZvBKH112pmVu/mW3bw3 /5ga80+L1Yof+cqMu/UmhNxi2+euK1SQtsr0M9/O6C5Ji4mPFl5ydCuQXyt5luVNYvzMzvW3 o1QesV84933lrHlR2W3nItYFNU18curnVsZkh9LodiWW4oxEQy3mouJEADL6srGxAgAA X-CMS-MailID: 20200617172653epcas5p488de50090415eb802e62acc0e23d8812 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20200617172653epcas5p488de50090415eb802e62acc0e23d8812 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset enables issuing zone-append using aio and io-uring direct-io interface. For aio, this introduces opcode IOCB_CMD_ZONE_APPEND. Application uses start LBA of the zone to issue append. On completion 'res2' field is used to return zone-relative offset. For io-uring, this introduces three opcodes: IORING_OP_ZONE_APPEND/APPENDV/APPENDV_FIXED. Since io_uring does not have aio-like res2, cqe->flags are repurposed to return zone-relative offset Kanchan Joshi (1): aio: add support for zone-append Selvakumar S (2): fs,block: Introduce IOCB_ZONE_APPEND and direct-io handling io_uring: add support for zone-append fs/aio.c | 8 +++++ fs/block_dev.c | 19 +++++++++++- fs/io_uring.c | 72 +++++++++++++++++++++++++++++++++++++++++-- include/linux/fs.h | 1 + include/uapi/linux/aio_abi.h | 1 + include/uapi/linux/io_uring.h | 8 ++++- 6 files changed, 105 insertions(+), 4 deletions(-) -- 2.7.4