From patchwork Thu Apr 25 18:39:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kanchan Joshi X-Patchwork-Id: 13643651 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58FA51514CB for ; Thu, 25 Apr 2024 18:47:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714070829; cv=none; b=qOEdY2Vdoctn2TmZneI+Sz0CSaG8g4yf0EV+PwSOm5mIvB6Q3254I5DJxagv4ieon7BIEKzDfAGMgk7DtEnmk0PjwWPqKm7I3hjTkBZVDGgkWX6M6MkxEV7WHf5bbSolIscvjF53BiNY3ryCzjvuywXWOLkLjv6J0biw/c3qRTM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714070829; c=relaxed/simple; bh=jlEo7mjTEa/d+J31Oce5T1eo2vI+1xW+upTvWFWz27o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=aMp632OPYFtBPkWbvXUzTy/36RAU01vs2A9pSaC/I7Gr8pZhUXv9H0P2zQnYz/Gk1JHTFpFo/N3Gg9RHeG0aWUWyM4rd1Z6RgFwtbUABt1eRvMuAJQ2kvnb4tpfzWv8Lk498u9BYhCW7vuQ/07pbGlFE0Sng2f2BD1KcIyDQAOM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=EBDheG8A; arc=none smtp.client-ip=203.254.224.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="EBDheG8A" Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20240425184706epoutp0123e9d6cca7abaedbff857ebf0e50aaa7~JmlXZUJd03260632606epoutp01B for ; Thu, 25 Apr 2024 18:47:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20240425184706epoutp0123e9d6cca7abaedbff857ebf0e50aaa7~JmlXZUJd03260632606epoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1714070826; bh=Js/hSRW8kEp1k9VQrph3vgZ0lgiRTB0hNOFeT7LTDp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EBDheG8AIWMBRVL6ov9bmb4ExSb+NI+B8PVbci3C6OO/yOq4XvOKwkDzQ1E37ji/7 kviG1rA2ZMyjm3Quq422qoaoBfkC/m/r6hfEZLxiRn51bvqlP43uEZQIM42SyXaQO9 vbKfWQMYv0Uwm5gOElWJPiloOJcwEmfaL1MkhYtU= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20240425184706epcas5p1029962312fa51b49df216c5a1ce74a64~JmlW9NoKZ1431014310epcas5p1N; Thu, 25 Apr 2024 18:47:06 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.177]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4VQPwS4Hr2z4x9Pr; Thu, 25 Apr 2024 18:47:04 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 8B.20.09665.825AA266; Fri, 26 Apr 2024 03:47:04 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20240425184704epcas5p3b9eb6cce9c9658eb1d0d32937e778a5d~JmlVCx69z2385723857epcas5p3v; Thu, 25 Apr 2024 18:47:04 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240425184704epsmtrp18d551fa6e17310e3273e8197843ea9c7~JmlVCCY9O0085200852epsmtrp1W; Thu, 25 Apr 2024 18:47:04 +0000 (GMT) X-AuditID: b6c32a4b-5cdff700000025c1-22-662aa528bc6d Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id AE.B4.08390.725AA266; Fri, 26 Apr 2024 03:47:03 +0900 (KST) Received: from localhost.localdomain (unknown [107.99.41.245]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240425184702epsmtip1e3c93d2f39f3720b3bbf1b4c9c180f46~JmlTSyjgm3266832668epsmtip16; Thu, 25 Apr 2024 18:47:02 +0000 (GMT) From: Kanchan Joshi To: axboe@kernel.dk, martin.petersen@oracle.com, kbusch@kernel.org, hch@lst.de, brauner@kernel.org Cc: asml.silence@gmail.com, dw@davidwei.uk, io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, gost.dev@samsung.com, Kanchan Joshi Subject: [PATCH 07/10] block: define meta io descriptor Date: Fri, 26 Apr 2024 00:09:40 +0530 Message-Id: <20240425183943.6319-8-joshi.k@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240425183943.6319-1-joshi.k@samsung.com> Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNJsWRmVeSWpSXmKPExsWy7bCmhq7GUq00g1k98hZzVm1jtFh9t5/N 4vXhT4wWr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vPS83T0isi9cz+VK+mjt+o5H0HZ/uPUnODuXLbyVm Lpj873dM7uuV316oaoiL/vxp1CM5SYmlOCPRUIu5qDgRABmbW38CAwAA X-CMS-MailID: 20240425184704epcas5p3b9eb6cce9c9658eb1d0d32937e778a5d X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240425184704epcas5p3b9eb6cce9c9658eb1d0d32937e778a5d References: <20240425183943.6319-1-joshi.k@samsung.com> Introduces a new 'uio_meta' structure that upper layer (io_uring) can use to pass the meta/integrity information. This is a prep patch. Signed-off-by: Kanchan Joshi --- include/linux/bio.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/bio.h b/include/linux/bio.h index 20cf47fc851f..0281b356935a 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -331,6 +331,12 @@ enum bip_flags { BIP_COPY_USER = 1 << 6, /* Kernel bounce buffer in use */ }; +struct uio_meta { + u16 flags; + u16 apptag; + struct iov_iter iter; +}; + /* * bio integrity payload */