]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Revert "btrfs: avoid monopolizing a core when activating a swap file"
authorKoichiro Den <koichiro.den@canonical.com>
Thu, 6 Feb 2025 16:20:54 +0000 (01:20 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:55 +0000 (13:49 +0100)
This reverts commit bb8e287f596b62fac18ed84cc03a9f1752f6b3b8.

The backport for linux-6.1.y, commit bb8e287f596b ("btrfs: avoid
monopolizing a core when activating a swap file"), inserted
cond_resched() in the wrong location.

Revert it now; a subsequent commit will re-backport the original patch.

Fixes: bb8e287f596b ("btrfs: avoid monopolizing a core when activating a swap file") # linux-6.1.y
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/inode.c

index b2cded5bf69cd97ee74a108880e1aa5835433cf5..f4a754d62bf450161a0a816e2604996e8ebd7f45 100644 (file)
@@ -7387,8 +7387,6 @@ noinline int can_nocow_extent(struct inode *inode, u64 offset, u64 *len,
                        ret = -EAGAIN;
                        goto out;
                }
-
-               cond_resched();
        }
 
        if (orig_start)