]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/ext4/mballoc.c
ext4: do not use yield()
authorLukas Czerner <lczerner@redhat.com>
Mon, 11 Mar 2013 02:28:09 +0000 (22:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Mar 2013 02:28:09 +0000 (22:28 -0400)
commitbb8b20ed94bc69120e31399c43cb336300dea109
tree29fcf8f8a55124ea700defdf951d23660306127f
parente3d85c366089015805f175324bb1780249f44669
ext4: do not use yield()

Using yield() is strongly discouraged (see sched/core.c) especially
since we can just use cond_resched().

Replace all use of yield() with cond_resched().

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c
fs/ext4/mballoc.c