Re: Different approaches to sync timeout: Desktop vs Mobile use cases

From: Oliver Neukum

Date: Tue Sep 09 2025 - 04:51:47 EST


Hi,

On 09.09.25 09:13, tuhaowen wrote:

**Use Case**: Desktop/laptop systems where users expect immediate feedback
**Problem**: When large file operations are in progress (e.g., copying
files to USB drives) and users initiate suspend, ksys_sync() can hang

It seems to me like both your approaches seek to mitigate
the consequences of the issue rather than solve it.
Your issue is that you have too many dirty blocks associated
with a slow device.

In other words, you should sync and need to limit the number
of dirty blocks created after you've started syncing without
freezing all of user space.

Regards
Oliver