mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
f2fs: fix the wrong condition to determine atomic context
commit633c8b9409upstream. Should use !in_task for irq context. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
13e8af958c
commit
2cb10f4e6c
@@ -764,7 +764,7 @@ void f2fs_decompress_cluster(struct decompress_io_ctx *dic, bool in_task)
|
|||||||
ret = -EFSCORRUPTED;
|
ret = -EFSCORRUPTED;
|
||||||
|
|
||||||
/* Avoid f2fs_commit_super in irq context */
|
/* Avoid f2fs_commit_super in irq context */
|
||||||
if (in_task)
|
if (!in_task)
|
||||||
f2fs_save_errors(sbi, ERROR_FAIL_DECOMPRESSION);
|
f2fs_save_errors(sbi, ERROR_FAIL_DECOMPRESSION);
|
||||||
else
|
else
|
||||||
f2fs_handle_error(sbi, ERROR_FAIL_DECOMPRESSION);
|
f2fs_handle_error(sbi, ERROR_FAIL_DECOMPRESSION);
|
||||||
|
|||||||
Reference in New Issue
Block a user