mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
FROMGIT: f2fs: fix the wrong condition to determine atomic context
Should use !in_task for irq context.
Bug: 281085599
Cc: stable@vger.kernel.org
Fixes: 1aa161e431 ("f2fs: fix scheduling while atomic in decompression path")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit f063fa43995667dbdf5b46406774a0ad58310dae
https://git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev)
Change-Id: I5ce9286cc380309ee5e294f54ec357a4bfa47d6f
This commit is contained in:
@@ -743,7 +743,7 @@ void f2fs_decompress_cluster(struct decompress_io_ctx *dic, bool in_task)
|
||||
ret = -EFSCORRUPTED;
|
||||
|
||||
/* Avoid f2fs_commit_super in irq context */
|
||||
if (in_task)
|
||||
if (!in_task)
|
||||
f2fs_save_errors(sbi, ERROR_FAIL_DECOMPRESSION);
|
||||
else
|
||||
f2fs_handle_error(sbi, ERROR_FAIL_DECOMPRESSION);
|
||||
|
||||
Reference in New Issue
Block a user