diff options
| author | Jan Kara <[email protected]> | 2023-09-13 15:04:55 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2023-09-14 16:06:59 +0000 |
| commit | 5229a658f6453362fbb9da6bf96872ef25a7097e (patch) | |
| tree | c8fc8b4054e34de2aa95d42d44cd0c5d8cd94658 /drivers/cdx/controller/cdx_controller.c | |
| parent | ext4: move setting of trimmed bit into ext4_try_to_trim_range() (diff) | |
| download | kernel-5229a658f6453362fbb9da6bf96872ef25a7097e.tar.gz kernel-5229a658f6453362fbb9da6bf96872ef25a7097e.zip | |
ext4: do not let fstrim block system suspend
Len Brown has reported that system suspend sometimes fail due to
inability to freeze a task working in ext4_trim_fs() for one minute.
Trimming a large filesystem on a disk that slowly processes discard
requests can indeed take a long time. Since discard is just an advisory
call, it is perfectly fine to interrupt it at any time and the return
number of discarded blocks until that moment. Do that when we detect the
task is being frozen.
Cc: [email protected]
Reported-by: Len Brown <[email protected]>
Suggested-by: Dave Chinner <[email protected]>
References: https://bugzilla.kernel.org/show_bug.cgi?id=216322
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
