Message ID | 20241114152743.2381672-18-axboe@kernel.dk (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 7A41BD68B31 for <linux-mm@archiver.kernel.org>; Thu, 14 Nov 2024 15:28:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6CC226B00A9; Thu, 14 Nov 2024 10:28:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 655C56B00AA; Thu, 14 Nov 2024 10:28:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4F6196B00AB; Thu, 14 Nov 2024 10:28:28 -0500 (EST) 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 25ADA6B00A9 for <linux-mm@kvack.org>; Thu, 14 Nov 2024 10:28:28 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id D4313AA588 for <linux-mm@kvack.org>; Thu, 14 Nov 2024 15:28:27 +0000 (UTC) X-FDA: 82785080952.30.2749F87 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) by imf03.hostedemail.com (Postfix) with ESMTP id A98DC20028 for <linux-mm@kvack.org>; Thu, 14 Nov 2024 15:28:05 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b="oCCce/1W"; spf=pass (imf03.hostedemail.com: domain of axboe@kernel.dk designates 209.85.210.52 as permitted sender) smtp.mailfrom=axboe@kernel.dk; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731597869; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=NyBHBKICHAilzWbXxQX4w3ArnCN9Xkn7LoXdkHxZ+NE=; b=4P0xiwGT7WRKyI3n9X1Xxm4pc2calCVbbXy4LJG1CT1YT9tRdo6V5WCpoknVeD5LccC6cq yLMYDQ9yNpL4LXHkGaChNIpWqMQIZ0IZW3dn7MbvNJ+i1DrexY9WjuIjCF6CsVej2yydId pDv5/ZxQ/DBh22HpQkFw9XL9V47F36o= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b="oCCce/1W"; spf=pass (imf03.hostedemail.com: domain of axboe@kernel.dk designates 209.85.210.52 as permitted sender) smtp.mailfrom=axboe@kernel.dk; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731597869; a=rsa-sha256; cv=none; b=t7N/5SaIZe22c6W8l6KsIWApso7ZTIi9WLXYMFCZ8fBnHQDOi1y7Cl4LDAfw0heRKw58FW 8NQLNpj5Rlda4o3nYQ/NeDvD4VpgAeakqv/KU0FGoaW9DnszygHpiK/TCjWNLdtVBnJ7Q2 0Q1f8xeuCxqXaAXF59eRnyFxbkgX0gU= Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-7180a400238so372602a34.0 for <linux-mm@kvack.org>; Thu, 14 Nov 2024 07:28:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1731598104; x=1732202904; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NyBHBKICHAilzWbXxQX4w3ArnCN9Xkn7LoXdkHxZ+NE=; b=oCCce/1WQZJOnTSJUIn/US2Hf1qGhVkhB+1qny/z/Lg5MEgqBoRxk+nbR6bISNCw07 lydwhqTmMYXYtz8VlTVWBA951Esk0pG0+CfX85LPutlRYMfF5ACC8qMzZ10YNkYFTbFw yNvdI0Vb/dLQ2T8tJywTFREY7d6+ebEzx6uuhcqjpGdJElIx/LNX3hOoqke76HOidgRg blWeFgM5R8IPgti9Ftz2cH51XsOwxRMdJTGx9bCXT7ICIPQS23CqdIIp/FGsINmuRVru NC3V56qUp5XR+EMeHwAhcL73vY7mOgVO1iXs1mePefAMaxxAtFF2Idx7nltVujtzske0 Nyjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731598104; x=1732202904; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NyBHBKICHAilzWbXxQX4w3ArnCN9Xkn7LoXdkHxZ+NE=; b=Et1ARHL3TdduZLzhZGY2R5NC9P4o21dsO2QYOl3x0WweLjUzhkqA/RY8YBBQo6YBun 6j8+5oQnRpFz9Zu/XGIVAZE/BOQCK4uKPGusHoz74SmojGhs1oHl8y8RJoPnLZIwCgcI yEPUHD+tfFZ4rr6HZjPSXVI7H9W7NXHjnze1rXBwCyTOOP29cwfwqxFu+PEmu+BcH3od l3pV9snJVeLQMDUt6tIMEBnHDwjk1f9Gy2Lu3v3A3WByUAc3tlbgayvUPDZF6wbftubp 9qGMm2gH5XcxqhmlCVLniLAPOK//zAJuePQrAlQHQFsDdbDTP2WUHLjsFGX8bkW9Znzt +HCg== X-Gm-Message-State: AOJu0YxV0V9avANF2+hL7pUcEH3vj+xC1EoJflmnU44AzOEol17KOE6p E6IQ2ftc1TAznYfgYFjQHa/hbEv9nm/fndYr1uFjDfipFWY50ka0042ak0Xf1yIpu3ONY0LIfqJ DKng= X-Google-Smtp-Source: AGHT+IGTccgjkWiSk1+iFGbOjrOkQSSEn+5BvJmTbBLfatp4glFbzMa7kfcy1vSIijdABdXFBUl4NQ== X-Received: by 2002:a05:6830:7101:b0:718:8ce4:6912 with SMTP id 46e09a7af769-71a6af419f8mr3092006a34.14.1731598104601; Thu, 14 Nov 2024 07:28:24 -0800 (PST) Received: from localhost.localdomain ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5eea026eb41sm368250eaf.39.2024.11.14.07.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 07:28:23 -0800 (PST) From: Jens Axboe <axboe@kernel.dk> To: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: hannes@cmpxchg.org, clm@meta.com, linux-kernel@vger.kernel.org, willy@infradead.org, kirill@shutemov.name, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, bfoster@redhat.com, Jens Axboe <axboe@kernel.dk> Subject: [PATCH 16/17] xfs: flag as supporting FOP_UNCACHED Date: Thu, 14 Nov 2024 08:25:20 -0700 Message-ID: <20241114152743.2381672-18-axboe@kernel.dk> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114152743.2381672-2-axboe@kernel.dk> References: <20241114152743.2381672-2-axboe@kernel.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: A98DC20028 X-Stat-Signature: jrdicmj6zh56hpy84spsjg6nitaakp9a X-Rspam-User: X-HE-Tag: 1731598085-141058 X-HE-Meta: U2FsdGVkX1+ETh0pJ88WQuZnsh/PVXTQfInBsqVzfYWdratfzWvf53NXMAnhxQSPrbEpycUiyl97QI0ZhDxpKWHdqed+1La4H3zDPGdRyDMLJklRscO/MEN+15lvgiKmF2q/aNCzU8sZM3oCaW6o2zcBAACjY8VdhPYInTU5lYpwEYOfdAjnJLAMko3MCSF8nh/KPMD/QS+33kmnSic85xTFFmi8+LDXjfUQ82p2ZwM1tGWdmsMHPPHBUPG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CUe4xmE1XifkKmR X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Uncached buffered IO
|
expand
|
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index b19916b11fd5..4fe593896bc5 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -1595,7 +1595,8 @@ const struct file_operations xfs_file_operations = { .fadvise = xfs_file_fadvise, .remap_file_range = xfs_file_remap_range, .fop_flags = FOP_MMAP_SYNC | FOP_BUFFER_RASYNC | - FOP_BUFFER_WASYNC | FOP_DIO_PARALLEL_WRITE, + FOP_BUFFER_WASYNC | FOP_DIO_PARALLEL_WRITE | + FOP_UNCACHED, }; const struct file_operations xfs_dir_file_operations = {
Read side was already fully supported, and with the write side appropriately punted to the worker queue, all that's needed now is setting FOP_UNCACHED in the file_operations structure to enable full support for read and write uncached IO. Signed-off-by: Jens Axboe <axboe@kernel.dk> --- fs/xfs/xfs_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)