From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (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 6F79F18C910 for ; Thu, 12 Dec 2024 19:14:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734030871; cv=none; b=NAUS9O7lkDvpfpIaMr946lYLUzYdEy+3NjUcXgUvxebKNBtUCO4Dkw6/bhfBGgFEErT2oMVWp4uWGOdhupxFVxUm7cSAXgIrdnCDf7F76klUtYdQzJkmo1vdnkMGL0guIyYAydMWkrEW1ttjBIHkmXNYou0EYN0KX990yVs69YI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734030871; c=relaxed/simple; bh=OCFrN8A/54R45OTnZwGJY+8g7Zjs0cTKD5uHci1NrPM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ROcRI+gaFDPhIS5YBL+5ph5ysXCNZStmHdit0mwRmXdOyqTQCy9X4qSRsPerPhN0sll2FjbkiHRoGRAo9d4QY87zIsAD48dhkhR1OAoKSIDNyCKFeDHLVpzPGqDPrwMvhwepw40r/pUXsDBBlf5AduxdB0A2Pjub4DAXLN2mNZ4= 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=GgW4/Jxo; arc=none smtp.client-ip=209.85.166.46 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="GgW4/Jxo" Received: by mail-io1-f46.google.com with SMTP id ca18e2360f4ac-83eb38883b5so33571439f.1 for ; Thu, 12 Dec 2024 11:14:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1734030865; x=1734635665; 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=P71yijEvoyRvd06GWA6PrfgjeJ3IYLqfiQZ66UscmdE=; b=GgW4/JxovBk9uarB1fbNBo6Ph9efMfRtrucZXfjiUXuHAuSXK7P2BTDoQ5PksQXvfc 3EmcA94k6hY/qiFjxozPFTumuR8sDMiwBV6Aj7QsSLqH+sAW76PttpqrrC54PzRpT5xg 7FlkM3aWFh8e67CuMFcXKDaHIirX4Qq8u3zkHWBXb5LVwOnV0sZo2GPMkbCdKbQ/wb1n jimF40n7nY1n/8kt6YgynDDEjTXHX1cjUXXd1MYQXoC+QL9sOxgqq9ydLrC28e23pgL6 GcFicCWGUyj3hBMw2BbupLJy7i14oPyvTbbTW6LchfjvqqC+kfZ4wzGqkNQ9av1uJ+QC jazw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734030865; x=1734635665; 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=P71yijEvoyRvd06GWA6PrfgjeJ3IYLqfiQZ66UscmdE=; b=CFZ3rb7ps/r54RZP0D+jCIvZnwqA5tRLOWlxN034+GPqh1ndLqtCCW8nLHhntYETs+ vX/MWUzyHIdzBxZa2sIXL6M2lMsuoud/+ey5vUo736+j9L6CKqyc000Bh6+iJeafmcA5 bLw2X5+Udr69Beu9gibMnbNwb9KIBwtEYe/gpGtl4PE6MhLa1c7ukpA2TRi4nbLJjJQL bFNhrzlkWQPZES6GiNzPFcQj3q+JIBXUlYp8T2g0qMVC23jbde6mfzhPc/nKY8985JtK ZInXcoD1yKBXu7ifI2mzRGDAl2HUcuVvhz6QlaupPv3f/gIO0YGmnY5/saGijyEFJg3y Riog== X-Forwarded-Encrypted: i=1; AJvYcCV010ogFZCWUaM3tGlePRqVyu2F1jviwASXU5h0gdJ/0vmycAGm9QbPUQkWot6ektnTrtolXp7JUKJQeAI=@vger.kernel.org X-Gm-Message-State: AOJu0Ywr7YnGys53mPAPv7+WQvMw0y7EpTix/2aNpzoyBbt5DM+oy2lH 018CiYRZUcHLCdQ+dW1fixSYYh6savQaomVzXKmasUZAjfS0JkHqbak+skFthYE= X-Gm-Gg: ASbGncu2vdijOppE766DHgqMkfDJTUtyeWSC2yp7JpIQduTSauTkYA/HOZXZZ97Okc2 nMzVCT7BQnZju9t/zI3TCNPUhM9aCVBbk6j+tNFS171tHDwvNdV7Jh13hTnMJ4b2JvDkIZgXIGk +6n8eEfXwrL5negdsNA/zje3avp80MwfoMgY8aKe9JqQ7KKddlK1gMMYnpVAUAaDr14RuN9UTfo RvttEhxhEiRYD72IKmSU9xdCoologc8aMUYJMAAYG5mgnXCmbHr X-Google-Smtp-Source: AGHT+IH7GBfExI9wU+7qWQ3YTNxevsUxlvzl9LcEv9ut7SVSJCkeqJHQFqGroUa4jGgptMxzux+NqA== X-Received: by 2002:a05:6602:485:b0:843:daae:e16d with SMTP id ca18e2360f4ac-844e8822360mr3443739f.6.1734030865486; Thu, 12 Dec 2024 11:14:25 -0800 (PST) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-844d3d47507sm76877839f.27.2024.12.12.11.14.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Dec 2024 11:14:24 -0800 (PST) Message-ID: <383d3adc-e939-44b2-9110-4db9b4477401@kernel.dk> Date: Thu, 12 Dec 2024 12:14:23 -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: [PATCHSET v6 0/12] Uncached buffered IO To: "Christoph Lameter (Ampere)" Cc: Christoph Hellwig , "Darrick J. Wong" , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, hannes@cmpxchg.org, clm@meta.com, linux-kernel@vger.kernel.org, willy@infradead.org, kirill@shutemov.name, bfoster@redhat.com References: <20241203153232.92224-2-axboe@kernel.dk> <668f271f-dc44-49e1-b8dc-08e65e1fec23@kernel.dk> <36599cce-42ba-ddfb-656f-162548fdb300@gentwo.org> <20241204055241.GA7820@frogsfrogsfrogs> <04e11417-cf68-4014-a7f7-e51392352e9d@kernel.dk> <2f79ff03-48ee-54bf-b928-e9519b3edfc7@gentwo.org> Content-Language: en-US From: Jens Axboe In-Reply-To: <2f79ff03-48ee-54bf-b928-e9519b3edfc7@gentwo.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/12/24 9:59 AM, Christoph Lameter (Ampere) wrote: > On Thu, 12 Dec 2024, Jens Axboe wrote: > >> On 12/10/24 4:11 AM, Christoph Hellwig wrote: >>> On Tue, Dec 03, 2024 at 09:52:41PM -0800, Darrick J. Wong wrote: >>>> RWF_DONTCACHE, to match {I,DCACHE}_DONTCACHE ? ;) >>>> >>>> They sound pretty similar ("load this so I can do something with it, >>>> evict it immediately if possible") though I wouldn't rely on people >>>> outside the kernel being familiar with the existing dontcaches. >>> >>> FYI, another word for dontcache. uncached just has too many conotations >>> in the kernel context. >> >> Sure, we can go with DONTCACHE instead. Only thing I don't like about >> that is that you can use uncached as a verb and adjective, eg talking >> about uncached IO. Talking about dontcached IO sounds pretty weird. >> >> As I've said previously in this and other threads, I don't feel too >> strongly about the in-kernel naming, I care more about the exposed >> name. And uncached does seem to be the most descriptive and most >> easily understandable by users. > > The page is cached while the operation is ongoing. "Transitory" would be > more accurate and it is a new term that was not used with pages before. Like I mentioned earlier, the fact that it's cached for the duration of the operation is more of an implementation detail that developers need not worry about. What's important is that it's not cached AFTER. I still feel UNCACHED is the best description, but I'll change it to DONTCACHE for the next version just to avoid the overlap with other in-kernel uses. -- Jens Axboe