From nobody Tue Nov 24 04:37:10 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794311212; b=K0a6lBtKkdregFpHuzNyQLBHlm2VMsJs4NmqiueiLUHIRUg6c048rlEwIwRfcHlvwEnU DmNjgr+L2i+nPkpLNjiYA9/bs8gydb5cAJQH8RXJ9pB7HIM3G9bMZzmj1eCjHzs1CTCeW VEcDklDjdRr5yuSWxpsybhsHodexRoHIwpowM1zRnihlxHptnuDGqLsgLQnDUg9LE4VOC fWnFZjls063rHxLwLurd2gt9f3QtjB0WR3lEFBqZpZzSNmj3pcJkDbVH4GD+6UCBO1nbu 07OwqA7LbRiq/9dxZovib3vwL9KpNSAPISvKEIC8SoOw6vjTgBsIG0t2VQP4PX4ZGRg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794311212; h=DMARC-Filter:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Debian-User; bh=TMjTt/yM65LJnfLBEkqU4HceoGuAe/XUxe0Ej6UzqFs=; b=jQdrgGgfgFfoXAMT4bQYG7bGOGJgi2esdNbdu/Q+cJdlqS7EajnFEIXAx6tv9plYLLxT RBxniq7jEIeJ+fa7ao2evWQGQ7+7edVoZB7TeEv+G3pAMP2tlHXNtbOkBqO/krloD5nEh FMrrj1UQWkcEwcXH002TnVZYW2eIbAE9xLrBQZMK1t8jkwdizoQaYTv67O72NAhKNh9Nb cE9HIZvSAdS+uymkOGhyyKiwoO0AEbrbcTCuYmMZcljrFlSGI2bJ4zp8wocxcnua3QYoB iMPH9T4gK+41EZzJAVAjbfU6Fu+j4sCWgXBsXrgjyCBI5wiu0MfvNompmg2F9HJBLcA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=iyixgFAg; arc=none smtp.remote-ip=82.195.75.108 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12412606A32E; Tue, 10 Nov 2026 11:46:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 12412606A32E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=iyixgFAg DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description; bh=TMjTt/yM65LJnfLBEkqU4HceoGuAe/XUxe0Ej6UzqFs=; b=iyixgFAg9qREIYke8njMawXuIx m+6DM4Uqz9vuRKRMNTS0WtEuw7lwrRzO+dqy61GCeyqhy/5nfW/VPdGm+Q9QyBvuQGWkMSkMK7lPI MGk/hYTjmx9FbtzL9vBmtflZ6A1gUpXHjVEp/jB3Na/Q4SqPsQe2m+a/oZ/sRsfzEVunoXZSzi5+o pmLhZuxFG16tl6QgFE9g5fn/7IfTQYgAAee5GlO/OWWUy6qbfBFppcHComW9Sb11YqYo6l3AMb0hO 61bPtWO+VfG30QK+x/Ewx8Usbm/VHCYUwt2AZWKncW5rYsxbB9rbccgIA2dXwP5XiQvhfjCnXWzZG nPDYeeqw==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1xQkJH-00CNSq-33; Tue, 10 Nov 2026 11:46:44 +0000 From: Breno Leitao Date: Tue, 10 Nov 2026 03:39:27 -0800 Subject: [PATCH v2 1/4] writeback: add the missing newline to the slow writeback report X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261110-writeback_stall_report-v2-1-9e0ed75074ca@debian.org> References: <20261110-writeback_stall_report-v2-0-9e0ed75074ca@debian.org> In-Reply-To: <20261110-writeback_stall_report-v2-0-9e0ed75074ca@debian.org> To: Alexander Viro , Christian Brauner , Jan Kara , Julian Sun , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, Breno Leitao , kernel-team@meta.com, stable@vger.kernel.org X-Mailer: b4 0.17-dev-ce4c1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1238; i=leitao@debian.org; h=from:subject:message-id; bh=NeGmKN3thvdahCzcgtVy86L0XUPUwXecQRMKsZHaZVs=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBq8wQYn+tO0/VLlCpKrWAiFk/NDyAXlM8rdRiIY 5NVV3z7jQmJAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCavMEGAAKCRA1o5Of/Hh3 bWPjD/4+JCpUjzQC7+wpcfuUqpIQ257Du7Kdozk0zxWRhZyLexwAvUq8MrMgAjj9pnefRjX9WH3 bWh8IdLz/x6p/emum/ddOOCpq3hS+yUpA/Nw95efr5YI8+ZvmnfA5ktJxMMv2sJz1oBmluexzFA nZeObq4sZfp5rXLA19Y7xnISHT2sbijtsVazm1m3J7obgvMW0MIgiKIfHB2pMEVOlxBa3i3lZQb SDnuQUj2GQHnRCUUSsvmSqF6vhFkp0dRey95qurL+iKwKPt9kIF5u0vXJEHWNQzLwUYEluPPYLJ McvMXURJb8e/B92meu65MID8Dl/2R/RkF3Qs0lUq97w9oqZzyUcGYzftDhvC/hOzGh/+mG7OWGm J7Z0jhZWaMpZe/VP7J8D+XYMv5uhZrw96OUGkxSc1Rr3hkq0EauSRPUszKGN/MmEJgIQ6lLqsrp OPVBX9zrFualqhV/iPBqMe2OpO5kM/4zZKY/FAz1VVs8WP6YrSrrCyLFblXa1cNheJiSgM0XGfi q+AAV7axQ6aiP1c9HaHF9cv8T5jhlpXvsFsiuBZNUQ/a3RevfIE300XwXtpANw7qu4lhGMipzqS 8xT3Ci+znxzd8wA7nVV3xaEj+NHOdyfyPQ1QvQKO++VKHpyrwJfguFsWJpBK4+xXUaAfqZ53tx2 GZBW8VwocVvy/9Q== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D X-Debian-User: leitao wb_wait_for_completion_cb() reports a writeback wait that exceeds hung_task_timeout_secs with a pr_info() that has no trailing newline. printk() keeps such a record open for a continuation and does not finalize it, so dmesg, the consoles and netconsole only see the report once the next message is logged. Terminate the message with a newline. Fixes: d6e621590764 ("writeback: Add logging for slow writeback (exceeds sy= sctl_hung_task_timeout_secs)") Cc: stable@vger.kernel.org Reviewed-by: Jan Kara Signed-off-by: Breno Leitao --- fs/fs-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 15260cf2a29b09..01a00d7542b371 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -204,7 +204,7 @@ static bool wb_wait_for_completion_cb(struct wb_complet= ion *done) done->progress_stamp =3D jiffies; if (timeout && (waited_secs > timeout)) pr_info("INFO: The task %s:%d has been waiting for writeback " - "completion for more than %lu seconds.", + "completion for more than %lu seconds.\n", current->comm, current->pid, waited_secs); =20 return !atomic_read(&done->cnt); --=20 2.53.0-Meta From nobody Tue Nov 24 04:37:10 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794311214; b=Je7zra2lDb5BY/jkgGLKv8Q/BMl/9U9XOjgHnBMXC/VKYLKf9Jmwxaevdo/1VjkE5MFk WhrMpojfq2s/ZizxfYjTIsWq4NgCsTE9BjnTwf3sSk86NyphqM1uQ8kD2NAILrxV0TmzG 4aDvOC7FeVuf8EfWAWq3ENOAqo+Pi+furTltWaEndAUwEfeNU70hPx1n4DbOoVfPsdeVm ww62pCP/DRz+ykOL4dZ9RQdzKJFexnlB5p5d6INt0uoGLEgMUTQRU1OTo76tI0vJWqVOg 7BrdTJfLE2KpYHR0JfPvT9KOXqJUQgsYIHUX5x9T3AvNG4ZQBcZdHPFxAWTJhamczQg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794311214; h=DMARC-Filter:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Debian-User; bh=hFN8Efe0ZyMi3/7epxVojqOnqpr05jI2UzOY/RNMMn4=; b=EzFNDu0UxRzzfFsP1XugGybebC3nRaPbIbNLdVNtLyl3A5r5qFlxIavqq4T5BWFq1fAy UcHpgv6rqv8qVIOpT/aIjFsa6GqV6Qm+M6qD/F+76Zdf/QDILTYWPvUMcINWKSkc2sWhi 5s5AXWNYz+dGL8IexmeFZ3I5oXIufjabN+CfQ7UQI16JNcK6+Ce6oNHWqGBEyw9rCatEe KN2vJm61Pm1tZsTqQlP/WZQFVww2t5LalI510lxNwXtyGJoHM3zO9FLGv1qPZtW69TTOM enWSvf18YIcu1MqAfNlBzpG3eJiM7IhBY82Jy4ttvQHpiI348s+68/lS9pW0ol7QvXA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=BjSRiFmh; arc=none smtp.remote-ip=82.195.75.108 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 940F260A3806; Tue, 10 Nov 2026 11:46:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 940F260A3806 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=BjSRiFmh DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description; bh=hFN8Efe0ZyMi3/7epxVojqOnqpr05jI2UzOY/RNMMn4=; b=BjSRiFmhygykO7PXhCPSjJ9BYr T8tNdiHctE/fNPWcPLjd/96AkqxNU6ReoCqcAO7sbaU8DlE9WymOB11O8N9ltLIDqetVFLsMvVRWl /4agiD2KKw36XY6BXaGsmTEezUhDhyIk9dflXl9h7uK8PZFvqjZWoHgu9ZOaaWDpnVTLKJYrs12PT vlL52FevuAbhRP5U4b6L2lw5U8l1kHRcbHmRDR/uv4KGKu/UcYE3KZ1MqZVxBE5cAIqIiEQ55lqtG mdUYvjy1r7lNZ/VchSEOoNxId+ozpg+nubxOud+ZFhfOFD/rCJyzR4V1UShY8nkm9xNqqpRpyTMH4 boIRKo5Q==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1xQkJN-00CNSz-0D; Tue, 10 Nov 2026 11:46:49 +0000 From: Breno Leitao Date: Tue, 10 Nov 2026 03:39:28 -0800 Subject: [PATCH v2 2/4] writeback: name the bdi in the slow writeback report X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261110-writeback_stall_report-v2-2-9e0ed75074ca@debian.org> References: <20261110-writeback_stall_report-v2-0-9e0ed75074ca@debian.org> In-Reply-To: <20261110-writeback_stall_report-v2-0-9e0ed75074ca@debian.org> To: Alexander Viro , Christian Brauner , Jan Kara , Julian Sun , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, Breno Leitao , kernel-team@meta.com X-Mailer: b4 0.17-dev-ce4c1 X-Developer-Signature: v=1; a=openpgp-sha256; l=5458; i=leitao@debian.org; h=from:subject:message-id; bh=PkvGbMkIVWW50tZgDleH6tDuM9JtcVvOQSQLHiupoRI=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBq8wQY7Km2qT9G5oWqhkGeOJ0iet/oqcMqKB3GX tSt3uEcCieJAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCavMEGAAKCRA1o5Of/Hh3 bZliEACaCQoV3P5pNnXcAk7Vk2hH6lUDDtyHOB0Bdofa8Dpd6zWsB8fL/SYkymfLlRxkY7oKlhy Rcd3SQt12Pz83HF7mzkwGab1hfB87Cc5w3fuCSmB2QEhU3dKlfZTq6D9ie3hvlQtkK0N3aDjS2b wZaHfaoR41JWYQY1ZJOKuOxv2EQCME39EZNeUQLzRs2kDGK7yBlZ7tbMwhlgM28o/VV52+W8mGX SD3UUnu8zCRZ7UfNztfeBImsjYKeLP6FQzNelczWbf/uiaI0vdxlMHOaMOXG/9yZm5F7tI0giv1 xMIqql/+Y3GkVgLfFcmNqieMaHXP7pAnNZ6849B7KrkoceRLFsrpLw3LN+fy/UUl+BQgBnlHPhs 2qyfNToSAJDzQ4+0h24z0AxqO6PoEXS1UPPyB0RJnCqNBemvWw/7ukgP0Asr3CnnDGIEAuesBRV bmMou6FWfM1pYYWWJrWMkESt8dW1qO68qqBkRV5uV+0QfqYQxTxARb3lhhwu4tkzD+bq9U+eOqM FCb5wi70O4UViaTzTsXDRmepTSsPfzdSvmpw/1vCHsyeLMChOFtBDKHVmKeFbQ1XRD7kmNYm2d6 C/6LS5wKGKfpsymIUs4vQ2BkMZ2yubK4FOdRgcKSGC8x7zv+XCkKedjzE9k71uLLuHc5RLEbejh fjc0DeDMxvct4wQ== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D X-Debian-User: leitao The slow writeback report names the waiting task and how long it has waited, but not what it is waiting on. On a machine with several filesystems there is no way to tell which device is slow. Pass the bdi to wb_wait_for_completion() and add its name to the report, together with the number of work items still outstanding. A sync issues one work item per cgroup wb with dirty inodes, so the count also shows whether a single cgroup is holding up the others. wb_wait_for_completion() took the bdi until commit 5b9cce4c7eb0 ("writeback: Generalize and expose wb_completion") made it usable for the memcg foreign flushes. memcg tracks those by bdi id only and passes NULL, which bdi_dev_name() prints as "(unknown)". A sync of files dirtied from two cgroups, on a throttled null_blk device, now reports: [ 10.043698] INFO: The task sync:276 has been waiting for writeback com= pletion for more than 7 seconds (bdi 252:0, work items left: 2). Signed-off-by: Breno Leitao Reviewed-by: Jan Kara --- fs/fs-writeback.c | 20 ++++++++++++-------- include/linux/backing-dev.h | 3 ++- mm/memcontrol.c | 2 +- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 01a00d7542b371..c5e9e5c0d506a9 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -196,7 +196,8 @@ static void wb_queue_work(struct bdi_writeback *wb, spin_unlock_irq(&wb->work_lock); } =20 -static bool wb_wait_for_completion_cb(struct wb_completion *done) +static bool wb_wait_for_completion_cb(struct wb_completion *done, + struct backing_dev_info *bdi) { unsigned long timeout =3D sysctl_hung_task_timeout_secs; unsigned long waited_secs =3D (jiffies - done->wait_start) / HZ; @@ -204,8 +205,9 @@ static bool wb_wait_for_completion_cb(struct wb_complet= ion *done) done->progress_stamp =3D jiffies; if (timeout && (waited_secs > timeout)) pr_info("INFO: The task %s:%d has been waiting for writeback " - "completion for more than %lu seconds.\n", - current->comm, current->pid, waited_secs); + "completion for more than %lu seconds (bdi %s, work items left: %d).\n", + current->comm, current->pid, waited_secs, + bdi_dev_name(bdi), atomic_read(&done->cnt)); =20 return !atomic_read(&done->cnt); } @@ -213,6 +215,7 @@ static bool wb_wait_for_completion_cb(struct wb_complet= ion *done) /** * wb_wait_for_completion - wait for completion of bdi_writeback_works * @done: target wb_completion + * @bdi: bdi work items were issued to, NULL for the memcg foreign flushes * * Wait for one or more work items issued to @bdi with their ->done field * set to @done, which should have been initialized with @@ -220,11 +223,12 @@ static bool wb_wait_for_completion_cb(struct wb_compl= etion *done) * are completed. Work items which are waited upon aren't freed * automatically on completion. */ -void wb_wait_for_completion(struct wb_completion *done) +void wb_wait_for_completion(struct wb_completion *done, + struct backing_dev_info *bdi) { done->wait_start =3D jiffies; atomic_dec(&done->cnt); /* put down the initial count */ - wait_event(*done->waitq, wb_wait_for_completion_cb(done)); + wait_event(*done->waitq, wb_wait_for_completion_cb(done, bdi)); } =20 #ifdef CONFIG_CGROUP_WRITEBACK @@ -1164,7 +1168,7 @@ static void bdi_split_work_to_wbs(struct backing_dev_= info *bdi, last_wb =3D wb; =20 rcu_read_unlock(); - wb_wait_for_completion(&fallback_work_done); + wb_wait_for_completion(&fallback_work_done, bdi); goto restart; } rcu_read_unlock(); @@ -2972,7 +2976,7 @@ static void __writeback_inodes_sb_nr(struct super_blo= ck *sb, unsigned long nr, WARN_ON(!rwsem_is_locked(&sb->s_umount)); =20 bdi_split_work_to_wbs(sb->s_bdi, &work, skip_if_busy); - wb_wait_for_completion(&done); + wb_wait_for_completion(&done, bdi); } =20 /** @@ -3069,7 +3073,7 @@ void sync_inodes_sb(struct super_block *sb) /* protect against inode wb switch, see inode_switch_wbs_work_fn() */ bdi_down_write_wb_switch_rwsem(bdi); bdi_split_work_to_wbs(bdi, &work, false); - wb_wait_for_completion(&done); + wb_wait_for_completion(&done, bdi); bdi_up_write_wb_switch_rwsem(bdi); =20 wait_sb_inodes(sb); diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h index c2284466e7aa66..808d939d2ca7f9 100644 --- a/include/linux/backing-dev.h +++ b/include/linux/backing-dev.h @@ -39,7 +39,8 @@ struct backing_dev_info *bdi_alloc(int node_id); void wb_start_background_writeback(struct bdi_writeback *wb); void wb_workfn(struct work_struct *work); =20 -void wb_wait_for_completion(struct wb_completion *done); +void wb_wait_for_completion(struct wb_completion *done, + struct backing_dev_info *bdi); =20 extern spinlock_t bdi_lock; extern struct list_head bdi_list; diff --git a/mm/memcontrol.c b/mm/memcontrol.c index ac6c43ea8c5a6d..df462d279a655e 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -4525,7 +4525,7 @@ static void mem_cgroup_css_free(struct cgroup_subsys_= state *css) =20 #ifdef CONFIG_CGROUP_WRITEBACK for (i =3D 0; i < MEMCG_CGWB_FRN_CNT; i++) - wb_wait_for_completion(&memcg->cgwb_frn[i].done); + wb_wait_for_completion(&memcg->cgwb_frn[i].done, NULL); #endif if (cgroup_subsys_on_dfl(memory_cgrp_subsys) && !cgroup_memory_nosocket) static_branch_dec(&memcg_sockets_enabled_key); --=20 2.53.0-Meta From nobody Tue Nov 24 04:37:10 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794311219; b=fTeov6Ho/Zuk9otGuyULNy8ZSzVkAkfhwZPjm55oghm0FCZeq8RMRVQbucW1NhfJCZIG vsMALre2fYY0hgspc0Jt6GtyPDz6TIk1YMqjZ7TfzmJJaORDfWqnOQBo+9T8oZBXBu0+f cugLpyfvX9Uhue1aA5De4WNY5wHpC/TYqWGZl9qRsKORn+y4VCRQ+mio22AQoH0MMbdhT PS7Z9Y+GN3SgNS5kNRLuTt097jsLx6syDwPXHhUBHzMbhUBz8zobfi0YOVd3VqPhhgfjB eeY9ynpbqNlrcQh5BMw2Vco5sIvettAwXBpuEsAusdmJMENxCxN069vtPAjsQQTsA+A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794311219; h=DMARC-Filter:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Debian-User; bh=gRVW2SlXZrQJCF/A0kq7pS5b8flQ/Sh7jAI5q7A4ms4=; b=UJtyxmfa3VhJqNknIziVVZHFAPt0I5wMMJ734WOgD+nLNCdXrbdvpJJhjiNN8j2hLBBF Mp59eNggDTN6dgDjJguP9/VK3skLPbcTcCsF3erRemJIUGsm6Fux6XKB457xuug8iOpeC INuVMPjg9Nw18F4ecIiJcjB7Z5KKXV1JyV+kX9LnE8E8+06oGeFTSZa3XFRmjySbjuq2w o4bWm7tcAWRTR5WXwrs1WoK2qZ9o8UHom0HstNKy4XpC8Cyz/GJUan745jBT2I9dF26hM sCS28hsuQfV8ezto8NdLOw0ZW24H0Ow3DbTmYU/h3nW3yX/yQyd/fxZ5wcv3GgJKNvw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=EqAZ6bR2; arc=none smtp.remote-ip=82.195.75.108 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47E9E60A381C; Tue, 10 Nov 2026 11:46:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 47E9E60A381C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=EqAZ6bR2 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description; bh=gRVW2SlXZrQJCF/A0kq7pS5b8flQ/Sh7jAI5q7A4ms4=; b=EqAZ6bR2kjWZmkur3br2mPpRhS 2JP2wKrtXb402ZPLJlwHk3CCE3gzUDouicoZk9sekNwOabrgL1jw4R75fMkmGeLPKB2atHPN9y4Y+ v4DhAzYggMrnFKCFfStatDp5v2wqf9e7bcaCVQIy9VS3c6S4VUy3CfGqCn7FqWLpYgPrtOfV2WmuJ Sv/NfeQzZq5o9oo+ooVIXDs2TyzucOQypasuYjEc51IBubfNI25MF3qluglyLu8yLlA25N/doqRWt 1b/SyI0r57W9EzzzRzY3lJ72vSvubdpY2P6vAsNbn0KY7eVqgqR+QHxOFsPFaqIWns9NRc6mE87AH cZSchDGg==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1xQkJS-00CNTa-2O; Tue, 10 Nov 2026 11:46:55 +0000 From: Breno Leitao Date: Tue, 10 Nov 2026 03:39:29 -0800 Subject: [PATCH v2 3/4] writeback: log the end of a slow writeback wait X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261110-writeback_stall_report-v2-3-9e0ed75074ca@debian.org> References: <20261110-writeback_stall_report-v2-0-9e0ed75074ca@debian.org> In-Reply-To: <20261110-writeback_stall_report-v2-0-9e0ed75074ca@debian.org> To: Alexander Viro , Christian Brauner , Jan Kara , Julian Sun , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, Breno Leitao , kernel-team@meta.com X-Mailer: b4 0.17-dev-ce4c1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2451; i=leitao@debian.org; h=from:subject:message-id; bh=u2qEqJa97IMYQjXULEzv1cq2WuUThXMDMARYrLe/reE=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBq8wQYnbNvAsZXal8d97AAOhUXQdWcdYAtPVoqf ThjeRURiG+JAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCavMEGAAKCRA1o5Of/Hh3 bWa8D/0Q8o7HtSBw541Vvwgp2xYsXuYm7Xe9cEoo452XKnUFKjgfFRwYCTsua/Gq/sgxlgGF+Cq QOfmimWUKd1DYxOycjuKFQQ6HC61zgJX5+Q9xOEyHk1Q0+ff5suDwfUHQnp70yn3Lq8N2oGImyv 32IjgGegUnsc/l/rYHnLDltFYVirWl2HMBviA4A76E9ouwWg7xAx5pS0ZFfwAsbxF/MqCy57Erc +ZfWJvaNxIMXKWX0pBTUpszVcjqHv/OYiyAbY36nLDRgBLqztr2TLgsxcwlEsakKS9gCKL6mTtb EIC9tgR84X6W2/V0RxxDLb3Pu2NOMiQcQ0p/pA3uYu1a2LWQFsPFW+nIh/iAIby8aml0cca8w27 eHZ3YO1hATrFmzPBFWXj5nKh7X+j2FBgLGLTjcaE8j54Iuc2kMzlP9z6RY6+82tFyeDxG7i2ctg B/C06UYRYGBoYOXjAzjl2OIQu3UiaBgI4zZGkxkYVIvkZgD+Yv3zgOAhVMJAPOJIyysHe++yK+4 L0HPoUprEbXv8i3s9rOdOYeliWgwXJ2ST5ix0KfVxqZTRqX2xqhnVZsf+V17azLTjMxkz60tSmS jf4la6GMq+tUhO3lBcQ/vTLkUEDK4zBMvUnC4rbXw3vfLzZJAkk+M9RFdcOvtDxLH7sbT660upR H8m2pgEYyG/IJ/w== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D X-Debian-User: leitao A slow writeback wait ends with one more "has been waiting" report, printed by the wakeup that sees the last work item complete: [ 31.763963] INFO: The task sync:276 has been waiting for writeback com= pletion for more than 29 seconds (bdi 252:0, work items left: 0). That line reads as if the task were still waiting. To tell a slow writeback from a stuck one, the reader has to notice that the reports stopped, which is easy to miss in a busy log. Report only while work items are outstanding, and log how long the wait took once it is over: [ 31.807879] The task sync:275 waited 29 seconds for writeback completi= on on bdi 252:0 Reviewed-by: Jan Kara Signed-off-by: Breno Leitao --- fs/fs-writeback.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index c5e9e5c0d506a9..e2da4781b5e00b 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -201,15 +201,16 @@ static bool wb_wait_for_completion_cb(struct wb_compl= etion *done, { unsigned long timeout =3D sysctl_hung_task_timeout_secs; unsigned long waited_secs =3D (jiffies - done->wait_start) / HZ; + int left =3D atomic_read(&done->cnt); =20 done->progress_stamp =3D jiffies; - if (timeout && (waited_secs > timeout)) + if (left && timeout && (waited_secs > timeout)) pr_info("INFO: The task %s:%d has been waiting for writeback " "completion for more than %lu seconds (bdi %s, work items left: %d).\n", current->comm, current->pid, waited_secs, - bdi_dev_name(bdi), atomic_read(&done->cnt)); + bdi_dev_name(bdi), left); =20 - return !atomic_read(&done->cnt); + return !left; } =20 /** @@ -226,9 +227,18 @@ static bool wb_wait_for_completion_cb(struct wb_comple= tion *done, void wb_wait_for_completion(struct wb_completion *done, struct backing_dev_info *bdi) { + unsigned long timeout, waited; + done->wait_start =3D jiffies; atomic_dec(&done->cnt); /* put down the initial count */ wait_event(*done->waitq, wb_wait_for_completion_cb(done, bdi)); + + timeout =3D sysctl_hung_task_timeout_secs; + waited =3D jiffies - done->wait_start; + if (timeout && waited > timeout * HZ) + pr_info("The task %s:%d waited %lu seconds for writeback completion on b= di %s\n", + current->comm, current->pid, waited / HZ, + bdi_dev_name(bdi)); } =20 #ifdef CONFIG_CGROUP_WRITEBACK --=20 2.53.0-Meta From nobody Tue Nov 24 04:37:10 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794311226; b=QyuLKtQ+TO3qqXFt6kDWG+G2jlrScbA9CujQQs2mlap5zfFFdnmlNXNwSoAEt/HBWANr ZPY0EOkjheQLhmsu/KdTSjUXe6VCxlxat0kJw9ocdKwwlZ7TRPCDbNlP1l6ACXzZkjB6c YtjJYTy1qmyzM/KplXUfYhwqKOMINonP3hz6ivtEy962GSWwNokPgTcHJEw17N/Fw2DXJ 8IBaCR5M/Cs0zGoQY5LOeRkZDvI4viXLhPvOd41CUmHpPQU9gx0qQfdjd1sS/zRujySAo oufyZF38xxB64NImuRtMHroLGkzYej1fSDKkqmlx9YdXA2dqAD9kvMN+7ygiwxg0b9w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794311226; h=DMARC-Filter:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Debian-User; bh=oyWJug/hBVWQQCOKqOZgk5LGIUN0CoIe/ztsrf1oXBc=; b=1KTSQ4N21liNas0NSC7bMpGlgZur8/iDhX85LxM4+Pj45yyiP+1ghK9FCtFGYH/LEJ+X A/LitAPWX8uMrkJK9aDoJM7LcD02rwww1rlnICbLtXYNt3wjpUhTwTUSPypNhWlv/pQBY hDVl0ggqiB/Yk0sSq3uvEJRaH2/xCqGYIF8CrbL+VMDyWx1LUvz10S9zI2/3jmm7+aRAt U0Pmg3AEQfSrahNqNHevUDuhQRpZHOWVmT2uX4kw/f/o4yi6IYbza4kUbGzvW0+0M6H8P mhpou53ekG343GhQgOK5QvogLlzvS/NND7Al62JrGp6dbc51OFtx20/CX4WrYX76MFA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=debian.org; spf=pass smtp.mailfrom=debian.org; dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=v7Tk81Sm; arc=none smtp.remote-ip=82.195.75.108 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 853E060A261D; Tue, 10 Nov 2026 11:47:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 853E060A261D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=v7Tk81Sm DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description; bh=oyWJug/hBVWQQCOKqOZgk5LGIUN0CoIe/ztsrf1oXBc=; b=v7Tk81Sm/v2CyqZbx+psXu5q2r ssSHq92OtmFNYq9p5nSX5H6ETCLNZaDmzyiYoLMcwEIYjnGonD3nH2rqOptn+9yDfOvhaZDLlrjah n+01f7wy1t38GU3DWbQHZoTVx0Cj393GzwFlgDDd7h3pwBtdflSreIvOkoR16mj+DCe9xMGwW6F6k VJ2VlS3g8ztZllnojNM2khGcjBYbaI4Y1HN5MQlcah1N3diBH2wKAbXCvlZraUq62E7Xg9B+CKIVN A6PNs+bVApeqaIbUaiyzbcNCggKSaOXgQW/5jYuVoAdDR0vpBnFrnd8Oc3qP/ANS4cC2YL4h4jDYJ Xtng5O4A==; Received: from authenticated-user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1xQkJY-00CNU5-1A; Tue, 10 Nov 2026 11:47:00 +0000 From: Breno Leitao Date: Tue, 10 Nov 2026 03:39:30 -0800 Subject: [PATCH v2 4/4] writeback: report a slow writeback wait once per timeout X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20261110-writeback_stall_report-v2-4-9e0ed75074ca@debian.org> References: <20261110-writeback_stall_report-v2-0-9e0ed75074ca@debian.org> In-Reply-To: <20261110-writeback_stall_report-v2-0-9e0ed75074ca@debian.org> To: Alexander Viro , Christian Brauner , Jan Kara , Julian Sun , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, Breno Leitao , kernel-team@meta.com X-Mailer: b4 0.17-dev-ce4c1 X-Developer-Signature: v=1; a=openpgp-sha256; l=3643; i=leitao@debian.org; h=from:subject:message-id; bh=ajm8Ubwuv+zRBQCdQ86iU9Tq8be5/mg0MciPD2KAfKM=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBq8wQYEQeCZFOUQMESKbD8oigrM0FIkR0zqQxCW emSIIM8CryJAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCavMEGAAKCRA1o5Of/Hh3 beoXD/9lTXvWJYV+JVoPskFLodmlanyOBCnxB/KXdCaVc8sIlueOcnJ4XOL+C9wptJHQNxraHCm vSzn90Ve/YsPVW9Gr1o+/x3sliFDJH3vkw1SRkgNJeNsdCcPVwb+Py1+oJ1erUqWi+AVHPMzqV7 1s55ySvBsDGrxFJCgktf3NGEja6hmny3CsNnFsCfnzCle0PLW08Ux6mghUNElv0+MCpab4zmPWO KylJh/zH7yJHvscZqbnIRNEcuGXiXsQZFTCJbUeMcaXaKm1rvxAuJV9kCGR2OwnK9grQ9ZsgaWs askY4XKVu4JCNwDWL4n/nBejkFMdgW3NOHoZbLTBwj/rseWdj/Zfh9gTjI1VLka4/VjTZZ/ZVoY 5iGyZkjnwYYfRMzQcSeCxBOgQ2voM5zQmkzjRRNE4YMffLjWjzZG7YoPPHIMeOrj6mHhi6Pj7pP gOWX0/MbEu0RMV0Wxn415d3patjIBJGLbm+RMaQRibIY9kReYln6JvaC7Vshg8i4PLB5T95gIo+ uxqChWUDybckZkNoX8lteGAhdnr4MR7jywgV/A2kSDcf4wNu6RKSZ9cP8TNNdhry47WsP/PmTKb 1Oi1qS0HeANf5nn890ZJB6ViIM8FRFUkvPva9ZA7xjgVRfIILeKT7KMoWUOMNSx679mMHaV5Wcg SpgtKJuVjHoJ6gQ== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D X-Debian-User: leitao The slow writeback report is printed on every wakeup of the waiter past hung_task_timeout_secs, and twice each time. Each flusher working for the waiter wakes it once it has not run for half the timeout, so the hung task detector sees it make progress. Since commit 84654c7f4730 ("wait: avoid spurious calls to prepare_to_wait_event() in ___wait_event()"), wait_event() checks the condition right after schedule() and again after prepare_to_wait_event(), so each of those wakeups reports twice. A sync of files dirtied from two cgroups, on a throttled null_blk device with the timeout set to 5 seconds, gets 18 reports for a 29 second wait: INFO: The task sync:275 has been waiting for writeback completion for more= than 7 seconds (bdi 252:0, work items left: 2). INFO: The task sync:275 has been waiting for writeback completion for more= than 7 seconds (bdi 252:0, work items left: 2). INFO: The task sync:275 has been waiting for writeback completion for more= than 10 seconds (bdi 252:0, work items left: 2). INFO: The task sync:275 has been waiting for writeback completion for more= than 10 seconds (bdi 252:0, work items left: 2). ... Set ->progress_stamp when the wait starts, so the first check does not take a zero stamp for a timeout. The same test now prints 5 reports: INFO: The task sync:276 has been waiting for writeback completion for more= than 5 seconds (bdi 252:0, work items left: 2). INFO: The task sync:276 has been waiting for writeback completion for more= than 10 seconds (bdi 252:0, work items left: 2). ... The task sync:276 waited 29 seconds for writeback completion on bdi 252:0 The flusher only checks for progress between inodes, so the wakeups now land on the first inode boundary past the timeout, a bit more than a timeout apart. The hung task detector scans once per timeout, so it can catch the waiter between two wakeups. Suggested-by: Jan Kara Signed-off-by: Breno Leitao Reviewed-by: Jan Kara --- fs/fs-writeback.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index e2da4781b5e00b..fcb7fb0196208b 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -203,12 +203,13 @@ static bool wb_wait_for_completion_cb(struct wb_compl= etion *done, unsigned long waited_secs =3D (jiffies - done->wait_start) / HZ; int left =3D atomic_read(&done->cnt); =20 - done->progress_stamp =3D jiffies; - if (left && timeout && (waited_secs > timeout)) + if (left && timeout && + time_after(jiffies, done->progress_stamp + timeout * HZ)) pr_info("INFO: The task %s:%d has been waiting for writeback " "completion for more than %lu seconds (bdi %s, work items left: %d).\n", current->comm, current->pid, waited_secs, bdi_dev_name(bdi), left); + done->progress_stamp =3D jiffies; =20 return !left; } @@ -230,6 +231,7 @@ void wb_wait_for_completion(struct wb_completion *done, unsigned long timeout, waited; =20 done->wait_start =3D jiffies; + done->progress_stamp =3D done->wait_start; atomic_dec(&done->cnt); /* put down the initial count */ wait_event(*done->waitq, wb_wait_for_completion_cb(done, bdi)); =20 @@ -2135,7 +2137,7 @@ static long writeback_sb_inodes(struct super_block *s= b, =20 /* Report progress to inform the hung task detector of the progress. */ if (work->done && work->done->progress_stamp && timeout && - (jiffies - work->done->progress_stamp) > HZ * timeout / 2) + (jiffies - work->done->progress_stamp) > HZ * timeout) wake_up_all(work->done->waitq); =20 wbc_detach_inode(&wbc); --=20 2.53.0-Meta