mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
nilfs2: do not use yield()
Use cond_resched() instead of yield() in the loop of nilfs_transaction_lock() since the usage corresponds to the "be nice for others" case that the comment of yield() says. This removes the following checkpatch.pl warning: "WARNING: Using yield() is generally wrong. See yield() kernel-doc (sched/core.c)" Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ryusuke Konishi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
39a9dcca61
commit
aceb4170bb
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ static void nilfs_transaction_lock(struct super_block *sb,
|
|||
nilfs_segctor_do_immediate_flush(sci);
|
||||
|
||||
up_write(&nilfs->ns_segctor_sem);
|
||||
yield();
|
||||
cond_resched();
|
||||
}
|
||||
if (gcflag)
|
||||
ti->ti_flags |= NILFS_TI_GC;
|
||||
|
|
|
|||
Loading…
Reference in a new issue