From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CD6B372060 for ; Mon, 12 Oct 2026 20:21:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791836509; cv=none; b=U3T7OqjkJenVZbzhikkPeJhZar4INF4iw8JtCTs2mIAPPbRVhCfjUbpfollkAN7icdcZbbI4LYY78t7xClXDcvRHiiWIL6B0FCXw4Mmb/lAD7WbZShNRFTEsH4m5fuzWc/XkROkFHCaXeld9Dj+Y+rCvXdsjsBVBq0NnZXiIRmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791836509; c=relaxed/simple; bh=lli5ii/H/rCG9APVq9ZvpYJJiJuxiuQfHiO8zLh8fqI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oRGo8sYY9PyZ/SZKuql2RVxK6uvEQy7zGV2YOz1HJGX5H+/z8hEZo3M59wu1b6Hu0ggUhVBM0fsV9E65Mf9HqXSEaERGF2fd/sjibKY+2lBJKwefuRZ635bO1AwYtBDswZLBk8EdLcIkEXiQJEZxL5YuTcCFFe6QGHsNa3kzZ0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b=gD/J06PY; arc=none smtp.client-ip=209.85.210.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b="gD/J06PY" Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-8266c388b67so1981213a34.0 for ; Mon, 12 Oct 2026 13:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20251104.gappssmtp.com; s=20251104; t=1791836507; x=1792441307; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Z6hOwSLR8cfh8cDplIOaHfJc8wiTVy6P5jX2Jl3fTgI=; b=gD/J06PYlcBk+mVRnraTNFIXOIJVOIGTOcTB1oa30DcyYN2svFooHy20btUglxMoyH AEOEeaajtTdi16bz5YWVjnfOIhGw8pVwnpsgsnTmLwBCp6fdLqzotYGAPbVvezyD9W+V xG5wVMa//0oST81G134fFyrpHC8Gj/W5sjwx121/kXfuHOXI8q9lU8Ml08zM+CI93n0h 9wT1MNs+CaI4/JUokTfBkMQRgSBMQPPgE2uLjHbdYK9i+QbIcFR1s4m5uUZrh2kKzDR0 GK5CNrF8M2H7zwCjmjdqP6theBogcsc4ctAS9pEtv1tFd6RJ4wv2meY2w4x4esC3M2tG hEKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791836507; x=1792441307; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Z6hOwSLR8cfh8cDplIOaHfJc8wiTVy6P5jX2Jl3fTgI=; b=Y9zlyxc56pPtAtRTn6STFd+qweUjBBkzaJ85f+5VyUnS3k54RxTqSMoBixGCcaDLRa echBTKZekDzP8+8aRLHHWCO8M4PujjSNh9VJKhf8Wait6tb5apvMgTBsEfrtVAzh1i37 Kg4Gl+FdVX6AiCkdPoXLOQR4EWQa8VN2Gi1q3YhOAC4MRS5EBCbsChB7sG1LTpt4XJPn raoP25jIMv9hAmFVPe0khDeXFljC7djJyshWkCEwfDMZjp1jVhiESMdUWFEWgbCnSS/A 9b/gaav8y7pwDVQSzcz+/HgjV0jYy5muO3KLYDmrw+vE+FblDH7xyX13kwSysZ+SEP0y OZmw== X-Gm-Message-State: AFq9FYK7UFFPcojeO77YtMNdX3tJgj9MAXjUIkMsMZ+UskfmSO5beiDF 4/oFzTn4yTTodZ6KLMxYVpNAMBOaiZl0iEeuUjEEW5H9bwVhyCbCf60vb6bLAR/rQBg= X-Gm-Gg: AYBFou12Sl7qPstMQFnguQhvgyPFEFzGz6E5vXdvGRTwCL97/Q26X4lnK7gdzcSJeT4 hrkRU/b96qd0epBFJKuPLGRlTno+4sH0RRCzzljhM7C6gDNSS+80P/daZLIt/cJstEBsRezzKlm hFU3Bg9LBhaPU3DUJEHJy4bObQ2E8/W/fHkz2Cc5aE8SmbfzW3jCUhc26KKiZGuVLJi4vfO+3Ha MvFO3sq60Js0cSJEs20zDD2jSqgDWUNl6Po6iBB9mIJFA3o+A/moguIz86cs66tV1X0NxzcXWgZ KQSZd+Ok9aaKVyFW0LKoqmqeWoGeStgOESVKOn89j1zUNjiXWFI9y4i6zdhlUi4FtfOHO8Wffi2 mPla0AqRA73/oYiafb20ekpkwUS/HV18S6t3/UFIIHC4B7TzEEickGNPqFUUdj6RiMlMiC0AUHu Y7ZYY/vCwRcc7Dc3nSpha4UWNZ4k4z9ydQ3VLXacT/EfvXsXdW61D+AIH3i9g98NndkphFaWDyO r4IN4n9yQYnmrwCxwIr75jyhbEfOkQ6bw3I9JJgIGnC9yJh5XhCsAaoUQ== X-Received: by 2002:a05:6808:f88:b0:4d7:17d5:6c9b with SMTP id 5614622812f47-50c40a3e034mr9500602b6e.9.1791836506735; Mon, 12 Oct 2026 13:21:46 -0700 (PDT) Received: from [192.168.1.106] ([198.8.77.135]) by smtp.gmail.com with ESMTPSA id 5614622812f47-50c167544b5sm12396143b6e.3.2026.10.12.13.21.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Oct 2026 13:21:45 -0700 (PDT) Message-ID: Date: Mon, 12 Oct 2026 14:21:41 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 00/13] Add dmabuf read/write via io_uring To: Pavel Begunkov , linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, Christoph Hellwig , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Keith Busch , Sagi Grimberg , Alexander Viro , Christian Brauner , Jan Kara , Andrew Morton , Nitesh Shetty , Kanchan Joshi , Anuj Gupta , Tushar Gohad , William Power , Matthew Brost , Alasdair Kergon , Mike Snitzer , Mikulas Patocka , Benjamin Marzinski , dm-devel@lists.linux.dev References: Content-Language: en-US From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/6/26 7:42 PM, Pavel Begunkov wrote: > The patch set allows to register a dmabuf to an io_uring instance for > a specified file and use it with io_uring read / write requests. The > infrastructure is not tied to io_uring and there could be more users > in the future. A similar idea was attempted some years ago by Keith [1], > from where I borrowed a number of changes. Later it was brough back up > to life by Tushar and Vishal. > > It's an opt-in feature for files, and they need to implement a new > file operation to use it. Only NVMe block devices are supported in this > series. The user API is built on top of io_uring's "registered buffers", > where a dmabuf is registered in a special way, but after it can be used > as any other "registered buffer" with IORING_OP_{READ,WRITE}_FIXED > requests. It's created via a new file operation and the resulted map is > then passed through the I/O stack in a new iterator type. There is some > additional infrastructure to glue it together, count requests, manage > lifetime and implement invalidation. I've queued this series up for some testing, in a separate branch. JFYI. -- Jens Axboe