[PATCH 0/4] fs: mark selected blocking waits as freezable

Dai Junbing posted 4 patches 1 week, 5 days ago
fs/eventpoll.c    | 2 +-
fs/jbd2/journal.c | 2 +-
fs/pipe.c         | 4 ++--
fs/select.c       | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
[PATCH 0/4] fs: mark selected blocking waits as freezable
Posted by Dai Junbing 1 week, 5 days ago
Hi,
 
During suspend and resume, tasks blocked in some interruptible wait
paths may be unnecessarily woken due to freezer state transitions. This
can introduce avoidable activity in the suspend/resume path.
 
This series marks a small set of blocking waits as freezable in places
where the task sleeps without holding locks that would make freezing
unsafe. The goal is to avoid unnecessary wakeups during suspend/resume
while preserving the normal wakeup conditions of these paths.
 
The effect is more noticeable on systems with frequent suspend/resume
cycles, such as mobile devices.

This series currently covers:
  - epoll_wait()-related waits
  - select()/poll() waits
  - blocking pipe read and FIFO open waits
  - kjournald2 commit wait
 
Comments are welcome.

Dai Junbing (4):
  eventpoll: mark ep_poll() sleep as freezable
  jbd2: make kjournald2 commit wait freezable
  pipe: mark blocking pipe read and FIFO open sleeps as freezable
  select: make select() and poll() waits freezable

 fs/eventpoll.c    | 2 +-
 fs/jbd2/journal.c | 2 +-
 fs/pipe.c         | 4 ++--
 fs/select.c       | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.25.1
Re: [PATCH 0/4] fs: mark selected blocking waits as freezable
Posted by Christian Brauner 1 week, 4 days ago
On Wed, 27 May 2026 14:49:08 +0800, Dai Junbing wrote:
> fs: mark selected blocking waits as freezable
> 
> Hi,
> 
> During suspend and resume, tasks blocked in some interruptible wait
> paths may be unnecessarily woken due to freezer state transitions. This
> can introduce avoidable activity in the suspend/resume path.
> 
> [...]

Applied to the vfs-7.2.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.2.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.2.misc

[1/4] eventpoll: mark ep_poll() sleep as freezable
      https://git.kernel.org/vfs/vfs/c/f5437433c37d
[2/4] jbd2: make kjournald2 commit wait freezable
      https://git.kernel.org/vfs/vfs/c/10c6b259fb56
[3/4] pipe: mark blocking pipe read and FIFO open sleeps as freezable
      https://git.kernel.org/vfs/vfs/c/6e5e03a76bee
[4/4] select: make select() and poll() waits freezable
      https://git.kernel.org/vfs/vfs/c/f837c1dbd121