diff options
author | Lukas Czerner <lczerner@redhat.com> | 2013-03-10 22:28:09 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-03-10 22:28:09 -0400 |
commit | bb8b20ed94bc69120e31399c43cb336300dea109 (patch) | |
tree | 29fcf8f8a55124ea700defdf951d23660306127f /fs/ext4/inode.c | |
parent | e3d85c366089015805f175324bb1780249f44669 (diff) |
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>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 117a9e7aa4a0..48fc023ab0a2 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -1352,7 +1352,7 @@ repeat: | |||
1352 | ei->i_da_metadata_calc_last_lblock = save_last_lblock; | 1352 | ei->i_da_metadata_calc_last_lblock = save_last_lblock; |
1353 | spin_unlock(&ei->i_block_reservation_lock); | 1353 | spin_unlock(&ei->i_block_reservation_lock); |
1354 | if (ext4_should_retry_alloc(inode->i_sb, &retries)) { | 1354 | if (ext4_should_retry_alloc(inode->i_sb, &retries)) { |
1355 | yield(); | 1355 | cond_resched(); |
1356 | goto repeat; | 1356 | goto repeat; |
1357 | } | 1357 | } |
1358 | dquot_release_reservation_block(inode, EXT4_C2B(sbi, 1)); | 1358 | dquot_release_reservation_block(inode, EXT4_C2B(sbi, 1)); |