From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 433E7C25B74 for ; Thu, 30 May 2024 17:30:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C16516B009F; Thu, 30 May 2024 13:30:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B9FA56B00A0; Thu, 30 May 2024 13:30:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A3F786B00A1; Thu, 30 May 2024 13:30:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 83F676B009F for ; Thu, 30 May 2024 13:30:58 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 2DD371202A3 for ; Thu, 30 May 2024 17:30:58 +0000 (UTC) X-FDA: 82175752596.07.14D0A84 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) by imf27.hostedemail.com (Postfix) with ESMTP id 970834001A for ; Thu, 30 May 2024 17:30:54 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="oUUw/Ooo"; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf27.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.185 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717090254; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ecBfK0D4e0ZtUSrQeyfZauk9M9aepqKnh3roZbh5Nf8=; b=qxHcQ/930hS40F2xygdJEsi8ykkSPf8CNbHGL+PZSIo8LJ6ZCxBE/BnP0fu8fyyzPD95gm lgDS5urVlsnDywvLV/93Wi6oP/TcDhZhYaUEpHziM0/z3RiusA1hod1E8qmkRVQv4jLczu RbsanO57WTV6vYG/ld5QogKrb4Bj4vU= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b="oUUw/Ooo"; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf27.hostedemail.com: domain of kent.overstreet@linux.dev designates 91.218.175.185 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717090254; a=rsa-sha256; cv=none; b=u1lSCdF83Gt1Nw0pGkghTHF4o9zBIs8V5PMA1VFVE7Vqd2ZVNm9/Nt3JmD7X1HV7Aok8Tp CKF/dhggHxWMKsleVst5JC7ODOoGVxNV9jqJY2BSv9R0ovSEi8WnCnU1DybAf2Oi6KlteJ /CuBkas7scHKTS6HCNoSpYZuUS80qj0= X-Envelope-To: bernd.schubert@fastmail.fm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717090252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ecBfK0D4e0ZtUSrQeyfZauk9M9aepqKnh3roZbh5Nf8=; b=oUUw/OoovYnnLnrdEVwdHTMajTqLF2cQNCncP6NGiORTdI3lESWwM3dQR8Lztsry6etEFW 90mbdosQXPjpkJAULqT7M8kVkqhDisKR2gxp+0OLkr+DyaFIrio8U6YWEGBba2dLtHPAE0 34Hl7V1ZETx25lWx/8Nw641kX4+Uoqg= X-Envelope-To: bschubert@ddn.com X-Envelope-To: miklos@szeredi.hu X-Envelope-To: amir73il@gmail.com X-Envelope-To: linux-fsdevel@vger.kernel.org X-Envelope-To: akpm@linux-foundation.org X-Envelope-To: linux-mm@kvack.org X-Envelope-To: mingo@redhat.com X-Envelope-To: peterz@infradead.org X-Envelope-To: avagin@google.com X-Envelope-To: io-uring@vger.kernel.org X-Envelope-To: axboe@kernel.dk X-Envelope-To: ming.lei@redhat.com X-Envelope-To: asml.silence@gmail.com X-Envelope-To: josef@toxicpanda.com Date: Thu, 30 May 2024 13:30:48 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Bernd Schubert Cc: Bernd Schubert , Miklos Szeredi , Amir Goldstein , linux-fsdevel@vger.kernel.org, Andrew Morton , linux-mm@kvack.org, Ingo Molnar , Peter Zijlstra , Andrei Vagin , io-uring@vger.kernel.org, Jens Axboe , Ming Lei , Pavel Begunkov , Josef Bacik Subject: Re: [PATCH RFC v2 00/19] fuse: fuse-over-io-uring Message-ID: References: <20240529-fuse-uring-for-6-9-rfc2-out-v1-0-d149476b1d65@ddn.com> <5mimjjxul2sc2g7x6pttnit46pbw3astwj2giqfr4xayp63el2@fb5bgtiavwgv> <8c3548a9-3b15-49c4-9e38-68d81433144a@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 970834001A X-Stat-Signature: 3su6h554noeksuazcymiicann1og473f X-HE-Tag: 1717090254-309335 X-HE-Meta: U2FsdGVkX1/4u/ODsve3ewO2BLCTewIhp1yNpyyAgPPRq1gaUx445/hUbhKAVz80HDHQbF1+JCqnsxyhPtD/pJN1w3d+unm+RtPD8BYwb+OYtLWbCuWx18QT6HpPKKqEkR+X08/+P3/6MmhYUgKV1DcnW+18bBvQio+l91zBL+eDv8TqcB1QnM0EuI5qp862I2uYQrrEMkF5aqPqAxWQy3Gzxmg8AuRqvda7/j8AgUZFhFrnTr2jT10DOybe5FT5N4qZTwf+j7nw0tSvkLlfh0CLBpLcooC92IbJF5sVReTKCnVd7vC84myvoIz/YWfnyo0XlijSRlwBA446WJuQhVYXX1K8vbvw/P4r6ncRlGSoqHzZEbdJI7QQXD4aWBapmlMkc3f4ybNnJuEOevCIW49tenqqbT1DnPeGgpkE9Gw1JdycicdES/+q8MC2CVAw3HZA0tG3t47yUgdTiIlhCrpYLeW8R2qq4ELeSMO1m30DUErLzWIh62V/lwN8/IrxR8upgZAsYntFp+YlFo/jHyddsTrMh7obIbA4vMbZt6ZphswxBXGraOLYOU3eQtVuJbD98dJsMo3Y+zTDS6ASzH8mjakjCpYKmQ4ojaahja054nDoRsAqOUp6ukhnovOQ720X9YN2XoFu2KKmApCLPXDMGZy7SA76tenPUXWX4FrsOOf2J7mBHacgJ8y0oj8T+jMISFQYH9gQdjUiJ2ztYV28Tox7+3iP4oZ30tXVUujhEhpQqrf69UvogWqgbd0mhL8Qite7Yi8n3B8ilH38POOlYW/XQXRoRZznI6cbNmTx7LxU9Cb1CFCFkkxR1Ywf7nHIypT19WOFrVbOr6sQDJZXkju49auw2OyIe7b0JqQ/dnNqx5WKKslEngoILD3ik6JzkSdzMIm7I8FbOo1LIDazj0T3Wj18ovxxgDHwn3/lFncJjNDHBdFickl0bEpBnMZ2rNuJpltTikmPVIV Pk/LDmgE dhhwPpHWomsm2A65loKwjPaSUEZ97KH7uujVr86eDF2TUW8IyBJTootW1If5L3SDAhuYgEIJq0qkcfT88TIXuRB0W/3YORZNqFLxdqR0yd/2MdZCYMWq9YuTSlQPm6HjFP1wjbq17ipBpWHUk9C2FsEjPiA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Thu, May 30, 2024 at 06:17:29PM +0200, Bernd Schubert wrote: > > > On 5/30/24 18:10, Kent Overstreet wrote: > > On Thu, May 30, 2024 at 06:02:21PM +0200, Bernd Schubert wrote: > >> Hmm, initially I had thought about writing my own ring buffer, but then > >> io-uring got IORING_OP_URING_CMD, which seems to have exactly what we > >> need? From interface point of view, io-uring seems easy to use here, > >> has everything we need and kind of the same thing is used for ublk - > >> what speaks against io-uring? And what other suggestion do you have? > >> > >> I guess the same concern would also apply to ublk_drv. > >> > >> Well, decoupling from io-uring might help to get for zero-copy, as there > >> doesn't seem to be an agreement with Mings approaches (sorry I'm only > >> silently following for now). > >> > >> From our side, a customer has pointed out security concerns for io-uring. > >> My thinking so far was to implemented the required io-uring pieces into > >> an module and access it with ioctls... Which would also allow to > >> backport it to RHEL8/RHEL9. > > > > Well, I've been starting to sketch out a ringbuffer() syscall, which > > would work on any (supported) file descriptor and give you a ringbuffer > > for reading or writing (or call it twice for both). > > > > That seems to be what fuse really wants, no? You're already using a file > > descriptor and your own RPC format, you just want a faster > > communications channel. > > Fine with me, if you have something better/simpler with less security > concerns - why not. We just need a community agreement on that. > > Do you have something I could look at? Like I said it's at the early sketch stage, I haven't written any code yet. But I'm envisioning something very simple - just a syscall that gives you a mapped buffer of a specified size with head and tail pointers. But this has been kicking around for awhile, so if you're interested I could probably have something for you to try out in the next few days.