This is a note to let you know that I've just added the patch titled f2fs: fix the wrong condition to determine atomic context to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: f2fs-fix-the-wrong-condition-to-determine-atomic-context.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 633c8b9409f564ce4b7f7944c595ffac27ed1ff4 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim <jaegeuk@xxxxxxxxxx> Date: Fri, 5 May 2023 12:16:54 -0700 Subject: f2fs: fix the wrong condition to determine atomic context From: Jaegeuk Kim <jaegeuk@xxxxxxxxxx> commit 633c8b9409f564ce4b7f7944c595ffac27ed1ff4 upstream. Should use !in_task for irq context. Cc: stable@xxxxxxxxxxxxxxx Fixes: 1aa161e43106 ("f2fs: fix scheduling while atomic in decompression path") Reviewed-by: Chao Yu <chao@xxxxxxxxxx> Signed-off-by: Jaegeuk Kim <jaegeuk@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/f2fs/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -764,7 +764,7 @@ void f2fs_decompress_cluster(struct deco 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); Patches currently in stable-queue which might be from jaegeuk@xxxxxxxxxx are queue-6.1/f2fs-fix-the-wrong-condition-to-determine-atomic-context.patch queue-6.1/f2fs-fix-deadlock-in-i_xattr_sem-and-inode-page-lock.patch