Skip to content

ext4: Do not let fstrim block suspend

Jan Kara linux-ext4 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2ext4: Move setting of trimmed bit into ext4_try_to_trim_range()fs/ext4/mballoc.c+25 -210 replies
2/2ext4: Do not let fstrim block system suspendfs/ext4/mballoc.c+10 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ext4: Do not let fstrim block suspend

Hello,

these two patches fix a long standing issue that long running fstrim request can block a system suspend as reported by Len Brown in [1]. The solution is quite simple - just report whatever we have trimmed upto now since discard is an advisory call anyway. What makes things a bit more complex is handling of group's TRIMMED bit - we deal with that in patch 1.

Honza

[1] https://bugzilla.kernel.org/show_bug.cgi?id=216322