Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp706518lqc; Fri, 8 Mar 2024 09:18:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVcn0mV/qTpdohsJrTA4BlJ71y6mPdr0iZbFoUftYXWLFGBGqxIMaKBCxIGmDwLi75DqZBIoUsDNYk1E69tbgVqVDmtaBSoPEVRKuLG/g== X-Google-Smtp-Source: AGHT+IHGU6ppW4Pqqa8qS8MQmAp/UGrpwCsi7Bme+mtPYXCk3T7nwACLlZbiWdpO0SYExmScomty X-Received: by 2002:a0c:fbc2:0:b0:690:b876:e835 with SMTP id n2-20020a0cfbc2000000b00690b876e835mr1448709qvp.30.1709918310318; Fri, 08 Mar 2024 09:18:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709918310; cv=pass; d=google.com; s=arc-20160816; b=qbWROJ+YpSNn0UpqhfKbDaQs61vKGZ3TG5/F4ZVfG6Ee7/laXtZaAKbNph1r46140c DEUZSymZkXP+f8HziFmx5g8KwiJhY3iO294rxWTqA21cI3auNRbzc21uV3ru4UyMfNVw ZP5hlSy7nQQw/w1va1gEr89nQO1+f7yVLAVKHvzJCfgm5SUKHgE9F8ichX1eJXAS2H6F XAPfqqM5iQT0M8dCnPoK+N/teGmoqrY5nIIX9edgdAkFFQrbZcJ/l8H5DsnOw9ZqiyNg 0BujuIkn37y7Ec2S3Xe3CFkz+egioe9HZUk1bcLGJkFN88Nhs0QY0VV/5D3O1B99hn/N nhXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=OzUtklwPlJOuPJluAgACqxyTfZzplj9AthRwSYyjjp8=; fh=IpSoG2pNnMjjIW8mvbnsl0qD+LM/NU+gwQAfKioTWLw=; b=BC3+V0HSrNpDfJsC8hhUDk9i5Ik33CwDjt0rZxwCmGC1CmC4Qt6REHb9PaJe7abnRr hHzjALPNDWbY8APxs8rYEOuCPitBF2bFwl46Y5ZzmtSiQCTHu9OThxNFFZyFzIO0YU9X 2ec75D+bLht3ofe2sDG0d+bWwyf5fHmyBq1b7UqlENXb/2Sxo8MmxMEkRijp1JuBlr8H 6scDTQH/CBQCvwI6qQCZbIBXHDwymyqQHbkSJeoD14383wa/WeaGKrrUlQidRtZn4iLT qeUbDsSaLq4UFRqatc5Tec5JUp+EqQMEhCWxx7F8EflW5Qq8gisyAedUMVUcHscha/z5 13+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=yTo4HQNQ; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-97364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97364-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ld12-20020a056214418c00b0068cf8ab1139si18681544qvb.374.2024.03.08.09.18.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 09:18:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=yTo4HQNQ; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-97364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97364-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E03E31C2120B for ; Fri, 8 Mar 2024 17:18:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4C514B5C1; Fri, 8 Mar 2024 17:18:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="yTo4HQNQ" Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) (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 4F29E282E1 for ; Fri, 8 Mar 2024 17:18:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709918291; cv=none; b=D5PBPBMfKdVKTML3Nq7XoJka6EWx3v91v8AT2MzjlzIxLkD/y2XrNXrj6QiqoEq6x6W7tDUS16Lk7psJrWucZj/tiq3EC5AOII3yNfTkOBdvPgQ5CALjch8Z5cMXSG0+4vLlkEpoO828wipQsy+adep2M5Vy4MKZ7vUzZCJpZ2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709918291; c=relaxed/simple; bh=4QZFZIY/kmodj4JF06VYmGkSZCD9gnX1+VV1k7bwbbM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aqvRVFLFkdWXRWHOzCKmXMxnh1K2H2veizzNfbfGrFAdlyXIEuF3ZuKpKaig/R/Vvw450ORMTpFlwNqbvBpcOUgqHRTYZmOU6fG5Ikx9PQVwnRFyKW/Sp1bH01EldLNzYlp6bXinoOc/5kJreR4lVj8IR4ISHg9CXz0l7a3/6rk= 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.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=yTo4HQNQ; arc=none smtp.client-ip=209.85.166.181 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 Received: by mail-il1-f181.google.com with SMTP id e9e14a558f8ab-365b5050622so1911035ab.0 for ; Fri, 08 Mar 2024 09:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1709918288; x=1710523088; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=OzUtklwPlJOuPJluAgACqxyTfZzplj9AthRwSYyjjp8=; b=yTo4HQNQDwfnjLZWlMPcHvoibIB96tsEqA9VKV1rvfdWH3cFsJcwVHWxEtFgAaga+X aKxk6r2GveOb1qd9TOhItsYIqtOXTWbjo4xsTZjRsMj4u51EhJLwJ5ugTebljVf0kda4 +3/O/F9HD/ynzyFE4iCXfFLx/gjSKcf35VHGDhNmOT3o7FETuf9gj0GvkY2LhmhGhLxB de/ulcSmzTEbOuhG5BOxklup1aDj3cR4qUC6e0XzZSk15rTtANQ5rdJYgxz51jJhQvJ6 dRkiAW8s9HiD3+hA/6dTbGeNjGLIUZo4S37nxzsQxqJDkgj/qBDgU24FfOI2yrg7USYN 3RWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709918288; x=1710523088; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OzUtklwPlJOuPJluAgACqxyTfZzplj9AthRwSYyjjp8=; b=YAh39zk5qOER1sadctJyxk0IQ+zsn4yJFTWZHYk8UEafxsD5uPuLxP6U2SPa6+/r+x j2J/ZEUg8muZOuF0Jwbvn1vkydt5MJ9IjM7WSfN7KrSd+lg4msbcN31UPi0502GcYml/ KZ7AVYSTlb3yysZMzBTLF+cI+99depOYkWH1xHESKn4EjfbxgmvzITnijwX5Iatbkacp 4g0fCWpwRAV055OiMQ8f+GP/qUDco+TtHxw0ujD+cIxsiFwdzPNVevSxs6lodW66XeRT LMxhRZ69LjcfG//iY8OD7lexSfabY1ZqSm1xgl6dPV196gkE+puH69BX0FTaeDhFZCJX JdSw== X-Forwarded-Encrypted: i=1; AJvYcCUFMJILF4cHwtX1gsBe8tsMJLZeZaLjpRyMBj7spl7awN/BJ/DK/UGTncVvumKTtA9oYpZd3yi48FNWLH9ujlvKLY/4l2ZZMCyav8cu X-Gm-Message-State: AOJu0YzFlCaqkOve511vckdBUIyQ8GWiH38PH+PnwaVFYaWiTor4eMhi P+Ww6wTgaQOXYQ4DhuPRhOqBTi6ZtzTmaz5uanBPnSe4BEKXtVhufnlFhSWBv6E= X-Received: by 2002:a6b:7709:0:b0:7c8:7471:2f59 with SMTP id n9-20020a6b7709000000b007c874712f59mr2596113iom.0.1709918288476; Fri, 08 Mar 2024 09:18:08 -0800 (PST) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id do32-20020a0566384ca000b004743bc59379sm4533416jab.59.2024.03.08.09.18.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Mar 2024 09:18:08 -0800 (PST) Message-ID: <30c3773b-4db3-4278-a127-df8c075e8109@kernel.dk> Date: Fri, 8 Mar 2024 10:18:06 -0700 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 v5 03/10] fs: Initial atomic write support Content-Language: en-US To: John Garry , kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-scsi@vger.kernel.org, ojaswin@linux.ibm.com, linux-aio@kvack.org, linux-btrfs@vger.kernel.org, io-uring@vger.kernel.org, nilay@linux.ibm.com, ritesh.list@gmail.com, Prasad Singamsetty References: <20240226173612.1478858-1-john.g.garry@oracle.com> <20240226173612.1478858-4-john.g.garry@oracle.com> <1f68ab8c-e8c2-4669-a59a-65a645e568a3@kernel.dk> <67aa0476-e449-414c-8953-a5d3d0fe6857@oracle.com> <8fde7b95-fed0-4cfd-a47e-455cccf1a190@oracle.com> From: Jens Axboe In-Reply-To: <8fde7b95-fed0-4cfd-a47e-455cccf1a190@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/8/24 10:15 AM, John Garry wrote: > On 08/03/2024 17:05, Jens Axboe wrote: >>> And the callers can hardcode rw_type? >> Yep, basically making the change identical to the aio one. Not sure why >> you did it differently in those two spots. > > In the aio code, rw_type was readily available. For io_uring it was > not, and I chose to derive from something locally available. But > that's a bit awkward and is not good for performance, so I'll follow > your suggestion. It's literally just one caller back, it's not like you had to look hard to spot this. Don't take lazy shortcuts - it's not very confidence inspiring if this is the level of attention to detail that went into this patchset. -- Jens Axboe