Message ID | 20241110152906.1747545-15-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 449ADD12D43 for <linux-mm@archiver.kernel.org>; Sun, 10 Nov 2024 15:29:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 61BEB6B00C0; Sun, 10 Nov 2024 10:29:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5CBE36B00C1; Sun, 10 Nov 2024 10:29:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 444A06B00C2; Sun, 10 Nov 2024 10:29:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 1F3B66B00C0 for <linux-mm@kvack.org>; Sun, 10 Nov 2024 10:29:38 -0500 (EST) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id CAA43807EE for <linux-mm@kvack.org>; Sun, 10 Nov 2024 15:29:37 +0000 (UTC) X-FDA: 82770569070.15.8E23A28 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by imf07.hostedemail.com (Postfix) with ESMTP id A3F4A40005 for <linux-mm@kvack.org>; Sun, 10 Nov 2024 15:28:40 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=1fYMogBX; spf=pass (imf07.hostedemail.com: domain of axboe@kernel.dk designates 209.85.215.177 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=1731252404; 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=LL88Qd2tMlsmBvcuEyGfQPoq7EBSjG4mmD1oB3CTmL4=; b=H4KVtCs8jc025ohUs8z9nvnc+7yIjmEAKacqhavuQbKnF3u+P8pqDVVg75EhAzCBwqrb1N WRXOakOJ4Dp9AekCls0FPky6uGg3Z7FffJ1dHHbIzn99SWYvtQeQEDh4Ik9NdvCA+fWvYc 3OOx2tLS6KjsVCdFrt5fp0XRAIpul8w= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=1fYMogBX; spf=pass (imf07.hostedemail.com: domain of axboe@kernel.dk designates 209.85.215.177 as permitted sender) smtp.mailfrom=axboe@kernel.dk; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731252405; a=rsa-sha256; cv=none; b=5BKNvh7oxqcsM95gQbRQIBu6bChmD2/xwcmZaOPjINfTQKdgJ36QbF4yzrZ7jhNcoIr7v3 MlvGfMtVPVAcyz9/ZL+kU6XG3ZDqDbkv4zHgMRcjwhE7YVpsVpsTm/6W+gizR3XhtmCbp/ toR84Wx2UYWZbE1SV4JpKkthdrsKz08= Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-7eb0bc007edso1952400a12.3 for <linux-mm@kvack.org>; Sun, 10 Nov 2024 07:29:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1731252574; x=1731857374; 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=LL88Qd2tMlsmBvcuEyGfQPoq7EBSjG4mmD1oB3CTmL4=; b=1fYMogBXVAxHN3slM9IWZefFoHG+T6LDYbFl/nRiQtp0nc0yOAcaS61CZ+j0zg+uTG DF7FDy7V1Fi3gYw/g67v3cDXd/G7S7NX8zP9xaZT4qC9xpUXXOjrjBYXqakuxKoF5k51 Ix+0eY/NWIJMSp/deJ2baO3o8Z8BYNbfqhsz6vWGkiWZLUpY/hktfN2Nt938e6Gpc9uw S+7deCWAfj4S2ERqgrpBEohz+kjqR8JVG9Mgl82mfZuiLUd+FkdSm+SuyGnhduceoec0 2kiaOYIvKR7EKs+yD2lpqNAHpnHvGmzeWn141zsQh6bVZm/s7oBslDAgYGtPBFg1FRFt lyNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731252574; x=1731857374; 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=LL88Qd2tMlsmBvcuEyGfQPoq7EBSjG4mmD1oB3CTmL4=; b=kwLkaJOul7SigOAke9gyiWkUlHOJ2XUGYsRF/ruQlc5bmv/Qx84F2jv93oKcdb+sui bgexXWpbi0lv/14Ip8tGi3xfFonpoPSvKBlakvWrZKMN3N6C2/jXZXERygfMXFZRvnsd poVNobzfFYEke4K3yi2zqE6hlFwL3f01kuR5ty69L6vkfJ7LcMGeUkwPWc8n+twSTH8E NmwVc4bu9uQDp2dDxlraPnSBEj3jMjWXF1N/kw6DYIUydNrxPYWaM2WRmbpaLtPuN2dV 9XVLJWup0iA66J1nj6HaEBaajDfafI2J21X9sFZxq/hw98j7NMT9epHFUynOdSeKsudk Zv+Q== X-Gm-Message-State: AOJu0YzgyzCNzEHzIFWI/O+SIWLA41Ny2C8J5AtIe3goxTn2BpLCEKoY dK6s+DbpQI6GhGuECRnuGOgO9i23kN5Ej82SPF57Vc6AJC2oNGyuRVyfCEx7djcM/nQBRQwsOlJ 8Aok= X-Google-Smtp-Source: AGHT+IGDHhrWZvwz3+S2z66PgLKGWEEUzZeIBjMPJzYATyn0eBE8Y9PpfOEANie1fvuwvTvVxNqbng== X-Received: by 2002:a17:90b:38ce:b0:2e2:d15c:1a24 with SMTP id 98e67ed59e1d1-2e9b174113cmr12568464a91.23.1731252574323; Sun, 10 Nov 2024 07:29:34 -0800 (PST) Received: from localhost.localdomain ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e99a5f935dsm9940973a91.35.2024.11.10.07.29.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2024 07:29:33 -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, Jens Axboe <axboe@kernel.dk> Subject: [PATCH 14/15] xfs: punt uncached write completions to the completion wq Date: Sun, 10 Nov 2024 08:28:06 -0700 Message-ID: <20241110152906.1747545-15-axboe@kernel.dk> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241110152906.1747545-1-axboe@kernel.dk> References: <20241110152906.1747545-1-axboe@kernel.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: A3F4A40005 X-Stat-Signature: cfyhkajz8pdcup8dueghqp8n3g3zjnh7 X-Rspam-User: X-HE-Tag: 1731252520-794031 X-HE-Meta: U2FsdGVkX1/oLxwbkQQ2JdOZDH74bbEsg/odeJ3mar9T+ymmI6w6yfCYl5FHAuLMGViV09qXx+MHp6M4+ST2rSNmziLltrnj54hf88KgK08FcT4ogDUrudWSffzV+NE+OyfuO9Y6ZZy9fMbQpPWb5lOwMR6Kb+rgZY8WePAE33BGo0bB6U5OnVQv3C3jDJ42kzAugXUMwJ4gpmpBzAxSLAon+o8X/SWdduh2hN2nbGu83sAo1tuhKIt/DnCrH7RTS2X3LOnwqNJNt6QpehvGv2M1YasFclGKZIpOeUn1TZRtR0gcvNJIKPfS1xFUPIJxb0bm0T58fFDuSvP1mgSRnNkBa90inHbWSOy1/tkM7SHO+HWK6yJbfxy+om+6lNTo8qCdkS+RU2HeNt9mYhbbkWDevbViHIYgHsx2T4X/jCKRLD1MHPgkO0E0DwLOaYyf0g6X1sz8FP4LOrgS6lxN2PZQkEQuiHf3YhNbnmEukQ/WM1tHdA4klWjaPffIl7aV+kKxWj/4h9tgeLs/JrTT/FafxL7S3H71f+Xx5NsM2rpbID4cly3GfiUZELtMPyDZnsl/bqKv6Er86t+efKSiA1ezhkKzztRr0rZhTpwnaOmcwIF8eTTOVRuv6Ic2cTn4CzxWOLENgt/7abp7i4XYMA9koDkw+A+X56YXNKH1uFIrtHfxMTS4WpBumFC1lnNCueOtKZR6Bpe01QBHbKVNfr11Z48us/0DDR2fO4rmpHHBtJ5xSz7RA1yGOEL0BxMMYq3NsMq0lOuWvtexTfVYDW0tQurLEaONz8Ym8S4z0ar9oby7ruJE5lDqQ+HnVxH0qY9iDh+MX1AI/lKJc5UmYUFLivisSqP6gfW5QwHOEM3mYejBWCBT0SwcYR2SIA0O9CIzyscXgxX0ruLifSEEWAlKSDkal4sXN+5frT+v7i/lGsvXiAmYjMH1vmMm21/Hrv4yExSiTmW733ihz8i R/hp9+2i hI4a4kxCwnV/ELIV8sz8D36oj/+oehReZ5434OZ4C0ZxMFBWWXb0WJuXF2J76dUPrR5AqsW2VkHAXmWwTRKyU5m0VooD3Qha499f1ryZ78mSXpDhat178pfm97H8MvrqBFTZdXTTdwHNOseV42gg1m2QpT0Yl8f+A2pH25EpBUemvEzFHqgTADXmgVwGu5QplCfidp8qWI7rbKnSocWbyylMhz6B2Eu+RUYzrKMgB98AERUUTHwzY3eCmuv/tau+0jAunI2gARMj/EvHHdGuBUhJSZanCfhdfMv/uf9s+Lpv3GYenmW9RrJdYKe3xcaflA26UARSerS68K8g= X-Bogosity: Ham, tests=bogofilter, spamicity=0.016598, 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_aops.c b/fs/xfs/xfs_aops.c index 559a3a577097..c86fc2b8f344 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -416,9 +416,12 @@ xfs_prepare_ioend( memalloc_nofs_restore(nofs_flag); - /* send ioends that might require a transaction to the completion wq */ + /* + * Send ioends that might require a transaction or need blocking + * context to the completion wq + */ if (xfs_ioend_is_append(ioend) || ioend->io_type == IOMAP_UNWRITTEN || - (ioend->io_flags & IOMAP_F_SHARED)) + (ioend->io_flags & (IOMAP_F_SHARED|IOMAP_F_UNCACHED))) ioend->io_bio.bi_end_io = xfs_end_bio; return status; }
They need non-irq context guaranteed, to be able to prune ranges from the page cache. Treat them like unwritten extents and punt them to the completion workqueue. Signed-off-by: Jens Axboe <axboe@kernel.dk> --- fs/xfs/xfs_aops.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)