diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2016-08-02 23:05:19 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-03 01:35:19 +0200 |
commit | aceb4170bb2ba88c5327cc69b9c91a708c7f7046 (patch) | |
tree | a6e402b2cecae9878f7aebeb1c9006493f4d4e59 /fs/nilfs2/ioctl.c | |
parent | nilfs2: emit error message when I/O error is detected (diff) | |
download | linux-aceb4170bb2ba88c5327cc69b9c91a708c7f7046.tar.xz linux-aceb4170bb2ba88c5327cc69b9c91a708c7f7046.zip |
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/1464875891-5443-8-git-send-email-konishi.ryusuke@lab.ntt.co.jp
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/ioctl.c')
0 files changed, 0 insertions, 0 deletions