From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 1A7DA3E8686 for ; Fri, 8 May 2026 13:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247960; cv=none; b=QFfXfk5vtFcX+ETpetq2W4+X7kerwMSGa1503CewNlc1DbC6t/zAy5XDbRZ047uW3IER+dt2wmf+q05gU2peJslcaM3pNughKc9GTzgrvfXHzvCyPGKU9B1Za3IBSjDo9wTiCnRyAsKyuju+5w8nK8AH5oGlIV4yiSdAJ4EtaGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778247960; c=relaxed/simple; bh=HbOMvrveZ7GrPJvW/6bKtTuYOy45fOlbCFun/XxRkGA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=sI5krJv3X4JeCX6o2+t/Mu1TaIokaOylcq21ebk7VqX8cpW3h4q75MOsQ4DVmjjXchu/STiNIR8GZvoWLkLVsHauhz8oHm1EeIbm5Ubv1+urcQc917t1gaoZSbq7VL563bkVMROVHlC5IhPRfL+qP40KOsbPcEIJDicWpuJIvyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=B7XK3MVx; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="B7XK3MVx" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-488b0046078so17000935e9.1 for ; Fri, 08 May 2026 06:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1778247956; x=1778852756; darn=vger.kernel.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=A6ZLFvL+lKydXpO4WILavVeDHicN0myZST2IZFNTkj0=; b=B7XK3MVx5C1MpciTIGMtCkRgLh+3KgzrNq0uKYjhUbj21r7to0uizFvQl8cuu4XnTH fIEz03UluZIwJ8i8oMgYPlzYRmEdv0hdEIY2OC4r4qF2PcyqmYUIx6iZk2n62XmExcpT Ac/S8qVdoTXufkggtRZRULSMlWDsG0sNbkZqs8j9L0SxmkWZTGhNsx980HhSYm7rwdFl TStkp7oNuDaZW4cppp+cPDXG/zzi6cRFqyH9Bjn3f+ccMOT9GJEuokaBOHWo22xNrani WpmQsdTSe+ZkE7I/v4zt99ADrAeNw6E076f93CYkBj41kY283Vc9UvqOlBC9RnpjLhnt Cbfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778247956; x=1778852756; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=A6ZLFvL+lKydXpO4WILavVeDHicN0myZST2IZFNTkj0=; b=RsqnQhSzTfqztVRnPD6RgQpYD913Ldvaxz6/bxsanSmhIFX8tdXyBsLJDLbG1mQOUL ZcIj5d35yG2W5sxUfX+kkZKy8b4/ljr+1yrXHuRnCiQp8R9mBN0Kov4OR8uyfMb9dHOZ fVG7jK03nTPFTID/F4jMc/tP5U4l4HidpBHDK3wBuV21jlCJXjlGtMqcOk4W+JFiZyQJ sq311hlzF3wpiWApwRJ18kwnvKKoFant8jkTwi9POGugFYQ6s/1YVTDD8HtGyPSex3Yd TK0ewb2B8zQwhTJZ8m6MdL5Voh5U3ZHGLaGMTtSApNnAA5Pimw31gALqs16FhDaUbMTQ k4ww== X-Gm-Message-State: AOJu0Yx8WRkQPNmoMH4aMSNTzrii24bjS27+wf08dxnXFQb1ud1dAjPh jGK2whLnlraDUY6BNSG1cgAne+zVIcVgsAAEo8qyPvwwoHHdaoKun50kiopRYqokdEW5kgDRP7Y Vl45DwPA= X-Gm-Gg: AeBDievYIxakZBWAdPv8ipF/Jncrnijj4hH9GYHInWc1F9BI98LhBzoaxCf0ZKmWNMV 3NXPlaNFhyvGNSQwmldVyE+4LCBD2krlMSBWitgUfHigJQNsd+31s10ZlfuMko/Ed4MHzXviaZU JedxEyMtKrNto1VOLqdZDkFMcpykdcGpyi3lNys7Y7wFcGcJFZ6P/3LXWVp4trAYb8Rn225xgGx Bo9qTDZaRQfAE6ypX79pZyQs63qUkLZwXS2V+szVBuUFx6sXk3uCZWb5+X0xmftZpmr0jZ6UajX 53scm9io1U9kAwAO+6evaX1kbGL8m2QkY2O7zim3Z/aPWqAcLIO45N84cYKwPOwaZUhZoJL4KvG 7NkKxqTbkB97iYidonZPcL2JWmkJGPmGilOB3o7WzK2ndWy+MIYSqBgcIFaYSaxY/6MAPqqyNdp HWl8bwfW5jcpLq16Z5GJDATjVcF4ImJBJbgI0b2QjA0bNc51FMVi+9iTQSGQ== X-Received: by 2002:a05:600c:a118:b0:489:a4:e578 with SMTP id 5b1f17b1804b1-48e51f32870mr151383775e9.14.1778247956168; Fri, 08 May 2026 06:45:56 -0700 (PDT) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e6db1413csm178475e9.29.2026.05.08.06.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 06:45:55 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Miklos Szeredi , linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 5/6] fuse: dax: Move long delayed work on system_dfl_long_wq Date: Fri, 8 May 2026 15:45:33 +0200 Message-ID: <20260508134541.282073-6-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260508134541.282073-1-marco.crivellari@suse.com> References: <20260508134541.282073-1-marco.crivellari@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the code enqueue work items using {queue|mod}_delayed_work(), using system_long_wq. This workqueue should be used when long works are expected and it is a per-cpu workqueue. The function(s) end up calling __queue_delayed_work(), which set a global timer that could fire anywhere, enqueuing the work where the timer fired. Unbound works could benefit from scheduler task placement, to optimize performance and power consumption. Long work shouldn't stick to a single CPU. Recently, a new unbound workqueue specific for long running work has been added:     c116737e972e ("workqueue: Add system_dfl_long_wq for long unbound works") Since the workqueue work doesn't rely on per-cpu variables, there is no obvious reason that justify the use of a per-cpu workqueue. So change system_long_wq with system_dfl_long_wq so that the work may benefit from scheduler task placement. Cc: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Marco Crivellari --- fs/fuse/dax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fuse/dax.c b/fs/fuse/dax.c index f6cf00a8938c..8b53625ac7ab 100644 --- a/fs/fuse/dax.c +++ b/fs/fuse/dax.c @@ -113,7 +113,7 @@ __kick_dmap_free_worker(struct fuse_conn_dax *fcd, unsigned long delay_ms) free_threshold = max_t(unsigned long, fcd->nr_ranges * FUSE_DAX_RECLAIM_THRESHOLD / 100, 1); if (fcd->nr_free_ranges < free_threshold) - queue_delayed_work(system_long_wq, &fcd->free_work, + queue_delayed_work(system_dfl_long_wq, &fcd->free_work, msecs_to_jiffies(delay_ms)); } -- 2.53.0