From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) (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 10A2C2031D for ; Fri, 21 Jun 2024 14:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718980143; cv=none; b=JJUhQlKfEEUnJ+evELBu1OaoqXaHW6z/zH0gtXk5O0YL+EHssFECVbkXchcno7HHfHGPj8gpVGxN557YNQZFRlknnefoHVV8bDHMf0I6HQ4bApef8obYHNUk1j9fnLfVCxuaugfXjITyp82aoieMrnQPU09fjqN9WHbaET+/edY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718980143; c=relaxed/simple; bh=56Fo7ge/GaJ7kRUMXWtKUYd2boB/qHndzM21h2jkuTI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QfzSek3dly8cG5O4O46P3zvYpC/mHkl7Lf/s9ey3aAm8uXnYNOG0tUQ8l1EGGN1KLLpSJIA8VTOAZ/MnNV5S1eFJZb+JBXuDVucA4VnWwUGvo2xbA8uVQfX/o6Z38tG2W8rQsnAGAD+Q0If7sUsDdLAu6NPhg/WBliStFc2NDRg= 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=yCi9RXcW; arc=none smtp.client-ip=209.85.161.47 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.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="yCi9RXcW" Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-5b3364995b4so386880eaf.0 for ; Fri, 21 Jun 2024 07:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1718980141; x=1719584941; darn=vger.kernel.org; h=content-transfer-encoding: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; bh=Y1abM88BFe0lQRCbOZswUBP4pTWhgX2789Hxz6HQAYw=; b=yCi9RXcWgPY73DTL0zaUltzOAbDSfPKRJzRtIzYuK08oTRM/DRLHaGs40qsavXAPMK 1L/oa52C+KHCoQmof6nrEDFJA3c+z5Dn8CmCPLZ5a0UNz7BY13/Yd5bmIaYI/RxzEskS OC71P5Yldvz4O/Sw1sk58usICH1NeLiWdCYyREGRYLB2tvVxgN61VFyJgLiGxj+iPTVh /zb822P4SfmTLKk5echBzTRL7mtzEX1lO9Vt8AUhARrnKH2w19QOXlbysljqMFXW1Zxy s3kRSUKphl+I5f4a9RTU5mpkTxEmaKVjqR4X9PcysK7yNwZU2N35JqaS+/2EHJ1eu/9J q4Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718980141; x=1719584941; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y1abM88BFe0lQRCbOZswUBP4pTWhgX2789Hxz6HQAYw=; b=M0cZQfHmjzlsoG6Fx1+ZZrn9j5ooOV6QD1UjOyAsBSPWiaUITPDk+mjXDsRIwN3RgI bxzLHTS0cxBDWbJfcaTabMdehHBrq3MDlriwe2feUtH+Rko483Pkwt8fF9BfyiYVzhmW pfKCSwpxdC7UcaKCjNvd40I9YnTOwk1nzwK0jFXewwjWUKvK7vTmwgjeqBgZ0mBgqfMd xD++qjsZ0S3lVxBA3LgUv8IKQR0ogwgmcaxavE2/vvJ1+CQz3Kp2BhzWOMxn8vX36hVZ /zBg3V5LZkqaoyczW+bNG5V0/E7uuSltse8xoyhrSGAdF8fV8sei30cDU8lhOTEOxd3Z GYTQ== X-Forwarded-Encrypted: i=1; AJvYcCUX5TT3pnw5YgpAlm0KyL6EEhTp34vkTfCcNZZjxSRxsF8G6u/VvYZM1O75cTNNeICdZARwTLmT+mSCKLBPG9BQGLBlNJFS3og= X-Gm-Message-State: AOJu0YzZ7FK4Q1TbmAdHnDGDgKROJzFnmBnP17Qkuqtk2170iuwUGPGB y9OXWjtPgzTCcvUGn4Z/u5XJIANjy35Mro1f35xqOTy4rK06M5ZnfYP3yk380qY= X-Google-Smtp-Source: AGHT+IEkuinnMEokNvg2WVwEkTmhWFZmN7sgYIOaiINLiCcfmqVoMGTXiCo/a5mwW2DIZdGNohN5Wg== X-Received: by 2002:a4a:c60f:0:b0:5bd:af39:c9d9 with SMTP id 006d021491bc7-5c1ad9093ebmr9612314eaf.0.1718980140889; Fri, 21 Jun 2024 07:29:00 -0700 (PDT) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5c1d58f236fsm276528eaf.37.2024.06.21.07.28.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Jun 2024 07:29:00 -0700 (PDT) Message-ID: <2159f1ad-98c0-4a71-acb9-5e0360e28bfc@kernel.dk> Date: Fri, 21 Jun 2024 08:28:58 -0600 Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Patch v9 00/10] block atomic writes To: John Garry , kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz Cc: djwong@kernel.org, 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, willy@infradead.org, agk@redhat.com, snitzer@kernel.org, mpatocka@redhat.com, dm-devel@lists.linux.dev, hare@suse.de References: <20240620125359.2684798-1-john.g.garry@oracle.com> <171891858790.154563.14863944476258774433.b4-ty@kernel.dk> <674559cc-4ecf-43f0-9b76-94fa24a2cf72@oracle.com> Content-Language: en-US From: Jens Axboe In-Reply-To: <674559cc-4ecf-43f0-9b76-94fa24a2cf72@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/21/24 1:59 AM, John Garry wrote: > On 20/06/2024 22:23, Jens Axboe wrote: >> On Thu, 20 Jun 2024 12:53:49 +0000, John Garry wrote: >>> This series introduces a proposal to implementing atomic writes in the >>> kernel for torn-write protection. >>> >>> This series takes the approach of adding a new "atomic" flag to each of >>> pwritev2() and iocb->ki_flags - RWF_ATOMIC and IOCB_ATOMIC, respectively. >>> When set, these indicate that we want the write issued "atomically". >>> >>> [...] >> Applied, thanks! > > Thanks Jens. > > JFYI, we will probably notice a trivial conflict in > include/uapi/linux/stat.h when merging, as I fixed a comment there > which went into v6.10-rc4 . To resolve, the version in this series can > be used, as it also fixes that comment. I did notice and resolved it when I merged it into my for-next branch. And then was kind of annoyed when I noticed it was caused by a patch from yourself as well, surely that should either have been part of the series, just ignored for -git, or done after the fact. Kind of pointless to cause conflicts with your own series right when it needs ready to go into the for-next tree. -- Jens Axboe