]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: handle decompress only post processing in softirq
authorDaeho Jeong <daehojeong@google.com>
Tue, 2 Aug 2022 19:24:37 +0000 (12:24 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 Aug 2022 11:18:31 +0000 (04:18 -0700)
commit27eb4a9ad43145c62dfe6b0eba50f97d8e83cd7b
tree3d1ac6c71e5017d770cad62e901845216a45fe02
parentdaf554047969b6386c8b5335d939752ca28658a7
f2fs: handle decompress only post processing in softirq

Now decompression is being handled in workqueue and it makes read I/O
latency non-deterministic, because of the non-deterministic scheduling
nature of workqueues. So, I made it handled in softirq context only if
possible, not in low memory devices, since this modification will
maintain decompresion related memory a little longer.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/data.c
fs/f2fs/f2fs.h