浏览代码

fs: Eliminate cond_resched_rcu_qs() in favor of cond_resched()

Now that cond_resched() also provides RCU quiescent states when
needed, it can be used in place of cond_resched_rcu_qs().  This
commit therefore makes this change.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: <linux-fsdevel@vger.kernel.org>
Paul E. McKenney 7 年之前
父节点
当前提交
388a4c8806
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/file.c

+ 1 - 1
fs/file.c

@@ -391,7 +391,7 @@ static struct fdtable *close_files(struct files_struct * files)
 				struct file * file = xchg(&fdt->fd[i], NULL);
 				struct file * file = xchg(&fdt->fd[i], NULL);
 				if (file) {
 				if (file) {
 					filp_close(file, files);
 					filp_close(file, files);
-					cond_resched_rcu_qs();
+					cond_resched();
 				}
 				}
 			}
 			}
 			i++;
 			i++;