Skip to contentSkip to conversation

f2fs: fix the wrong condition to determine atomic context

PATCH Applied Jaegeuk Kim 3 participants 3 messages May 5, 2023 – May 18, 2023 F2FS file system

lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: fix the wrong condition to determine atomic context

Should use !in_task for irq context.

Fixes 1aa161e43106 ("f2fs: fix scheduling while atomic in decompression path")
---
 fs/f2fs/compress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/compress.c +1 -1
index 11653fa79289..10b545a1088e 100644
@@ -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);
Signature · 1 line
2.40.1.521.gf1e218fcd8-goog
#2 lore raw
In reply to Jaegeuk Kim
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 7 lines · On Fri, 5 May 2023 12:18:41 -0700 you wrote:

Should use !in_task for irq context.

Fixes 1aa161e43106 ("f2fs: fix scheduling while atomic in decompression path")
---
 fs/f2fs/compress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [f2fs-dev] f2fs: fix the wrong condition to determine atomic context

    https://git.kernel.org/jaegeuk/f2fs/c/f063fa439956

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html