From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 4EF7D1E32C3 for ; Thu, 20 Mar 2025 16:10:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742487007; cv=none; b=GE4zWg8joyFfpG8Y/0gk10aoREH24ndBWSNhK8xlA13vjVmfsd8MnumLwVhPS3trH6iYQzN0U/Y95O7h93xWMnLb8VyCL+OwLvGoH+FC25Do3vD87vxfThQtutuwq+Y8YjNG0S6N858R6hhpdVFtehHFW8s1kUalSkKhlCcTqjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742487007; c=relaxed/simple; bh=8Cl+MQIg4WHzzZNmEIM+eK5se2qBbKPb4qs91E7rNPc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=coIakIcFwTVr4kwYAh2Gv6dC0CbZzGzgfKsZkY8CQDq2rTeVknvcksNfQn96KEAG9NRPEn2qZxYv5Phpd0RIAKhIuW7CEQyBwTqFsY77fPI99/BXz+NyvLQ1n30TltzoLUjEz1AKPtzbyi5ugtBY137Z4XBJFw07ZqdNQtcWBB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=furiosa.ai; spf=none smtp.mailfrom=furiosa.ai; dkim=pass (1024-bit key) header.d=furiosa.ai header.i=@furiosa.ai header.b=k8+7Yl+L; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=furiosa.ai Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=furiosa.ai Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=furiosa.ai header.i=@furiosa.ai header.b="k8+7Yl+L" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-22409077c06so26040835ad.1 for ; Thu, 20 Mar 2025 09:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=furiosa.ai; s=google; t=1742487005; x=1743091805; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qUdUXUFCvJW9zFlXHHcD9YlzbUxFoXXptuBKlu8C0TQ=; b=k8+7Yl+LqTgMT6WTJjdwz172vALflx6HRGI+If0ejAcNYQ+dFZodwOldCn+BHITq+p 7RBfva/6k+MwGGGn8U0HTHrZRC5DJPf5ud14TycLmCX73bXOnCQIvwoY8Yk2o/Nzh7/4 s/F1Dlak1WisYFHIRvuLYbzZ6QhjtlKZABR78= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742487005; x=1743091805; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qUdUXUFCvJW9zFlXHHcD9YlzbUxFoXXptuBKlu8C0TQ=; b=LgJzJIPzbDoMzJ+mwtygMV99qllRU+TlPB4n2aQdsYivJMgW8qltnwCOTpiM2cJgdi ic0MBw5sEEoJfukVLOLbD0Qki5NQMsWikkyW7N7QN8968KFL2w3P9v33GXeIRDFMdQPT 93nof5Se0NUZlGXccMP6iitJp6iVbn4Gdwff/++HPQ50aAIEuPW0NWJ2MPS0dHxuYox3 z7hEEGBwPb2pByG9oNkfWsWkR7M837hMRmkjH+LVKcp0v/zmgFkABkN3JH+lpJaHA7P/ Ydt8/1nDju+PFNe4fJB2jlyUecrgVsebxh5JS7n50NZ8xuAEbQrIEF2jolAJqU67ItuN B5Ew== X-Forwarded-Encrypted: i=1; AJvYcCWF/H2qJVyehjuniICy+LbWpvqeLWoHxgoJN0Y/l6lq/KYxqEfKdsNbSXfri/N1afcMrIK5nMlDHb3nDg==@vger.kernel.org X-Gm-Message-State: AOJu0YxXmmYAZxHi5A4ls1KHP2AqYSMryEUHrcanPKSQV2c+m95ui+qM eMUr3BeNzfF17jaMQOz+k3AjOEE5gO//P5p0/ZwvbaItX3iUukMETArsgYX+6y0= X-Gm-Gg: ASbGncunGrhBpTbF1L327xvayUiNmO9adWZ4sTnwVRK+jpzmIj2uZpgXSv/tJjuuNS5 X1EqMNlLiAC4jdSnxfB1eLmdWZevp/g95VOrmpzA3qBW8w6bZiyjyJi9poJA2mtRMwZ28xVyJc8 nowPi1M53Rc9/9jZsnGfMHqT7pOrY+RpH2NRC94NcmRZJYis5b22jw5h8UgP92OOMjNZRwgHZ0l fgsscmhaDL8GW3S/neFAK9ZQNa53rK/rlwBG1Y+CPX3h+rWBkKHSjb82nfTO4MLLGBMJJghz0jZ 0uayACHtOLFVphSoGrV9iZOX5CYIBseJ76lu3PlJQuZbLeyi9xN6oR9koTZAHwS+Oq51bnAI22t M X-Google-Smtp-Source: AGHT+IFkwpk2JEQYn31dAuhvUrxsa+7Xm/Ntb/s0UDsg6lyyXCycmlVUTKPqIReWtnBspXfiHRADZw== X-Received: by 2002:a05:6a00:22d2:b0:737:6fdf:bb69 with SMTP id d2e1a72fcca58-739059b4d2cmr113077b3a.13.1742487005393; Thu, 20 Mar 2025 09:10:05 -0700 (PDT) Received: from sidongui-MacBookPro.local ([61.83.209.48]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73730ca057csm10750423b3a.48.2025.03.20.09.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Mar 2025 09:10:04 -0700 (PDT) Date: Fri, 21 Mar 2025 01:10:00 +0900 From: Sidong Yang To: Pavel Begunkov Cc: Jens Axboe , dsterba@suse.cz, Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, io-uring@vger.kernel.org Subject: Re: (subset) [RFC PATCH v5 0/5] introduce io_uring_cmd_import_fixed_vec Message-ID: References: <20250319061251.21452-1-sidong.yang@furiosa.ai> <174239798984.85082.13872425373891225169.b4-ty@kernel.dk> <20250319170710.GK32661@suse.cz> <4ba22ceb-d910-4d2c-addb-dc8bcb6dfd91@kernel.dk> <27ae3273-f861-4581-afb9-96064be449a4@gmail.com> Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27ae3273-f861-4581-afb9-96064be449a4@gmail.com> On Thu, Mar 20, 2025 at 12:04:33PM +0000, Pavel Begunkov wrote: > On 3/20/25 01:47, Sidong Yang wrote: > > On Wed, Mar 19, 2025 at 11:10:07AM -0600, Jens Axboe wrote: > > > On 3/19/25 11:07 AM, David Sterba wrote: > > > > On Wed, Mar 19, 2025 at 09:27:37AM -0600, Jens Axboe wrote: > > > > > On 3/19/25 9:26 AM, Jens Axboe wrote: > > > > > > > > > > > > On Wed, 19 Mar 2025 06:12:46 +0000, Sidong Yang wrote: > > > > > > > This patche series introduce io_uring_cmd_import_vec. With this function, > > > > > > > Multiple fixed buffer could be used in uring cmd. It's vectored version > > > > > > > for io_uring_cmd_import_fixed(). Also this patch series includes a usage > > > > > > > for new api for encoded read/write in btrfs by using uring cmd. > > > > > > > > > > > > > > There was approximately 10 percent of performance improvements through benchmark. > > > > > > > The benchmark code is in > > > > > > > https://github.com/SidongYang/btrfs-encoded-io-test/blob/main/main.c > > > > > > > > > > > > > > [...] > > > > > > > > > > > > Applied, thanks! > > > > > > > > > > > > [1/5] io_uring: rename the data cmd cache > > > > > > commit: 575e7b0629d4bd485517c40ff20676180476f5f9 > > > > > > [2/5] io_uring/cmd: don't expose entire cmd async data > > > > > > commit: 5f14404bfa245a156915ee44c827edc56655b067 > > > > > > [3/5] io_uring/cmd: add iovec cache for commands > > > > > > commit: fe549edab6c3b7995b58450e31232566b383a249 > > > > > > [4/5] io_uring/cmd: introduce io_uring_cmd_import_fixed_vec > > > > > > commit: b24cb04c1e072ecd859a98b2e4258ca8fe8d2d4d > > > > > > > > > > 1-4 look pretty straight forward to me - I'll be happy to queue the > > > > > btrfs one as well if the btrfs people are happy with it, just didn't > > > > > want to assume anything here. > > > > > > > > For 6.15 is too late so it makes more sense to take it through the btrfs > > > > patches targetting 6.16. > > > > > > No problem - Sidong, guessing you probably want to resend patch 5/5 once > > > btrfs has a next branch based on 6.15-rc1 or later. > > > > Thanks, I'll resend only patch 5/5 then. > > And please do send the fix, that should always be done first, > especially if it conflicts with the current patch as they usually > go to different trees and the fix might need to be backported. Sorry to forget to cc you Pavel. https://lore.kernel.org/linux-btrfs/20250319180416.GL32661@twin.jikos.cz/T/#t Thanks, Sidong > > -- > Pavel Begunkov >