]> www.infradead.org Git - linux.git/commitdiff
fs: Eliminate cond_resched_rcu_qs() in favor of cond_resched()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 24 Oct 2017 15:39:34 +0000 (08:39 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 4 Dec 2017 18:28:59 +0000 (10:28 -0800)
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>
fs/file.c

index 3b080834b8704d6f931fe73cdd3c18c1a8d95d67..fc0eeb812e2cbeb7e0615b17f49d331b0a91867e 100644 (file)
--- a/fs/file.c
+++ b/fs/file.c
@@ -391,7 +391,7 @@ static struct fdtable *close_files(struct files_struct * files)
                                struct file * file = xchg(&fdt->fd[i], NULL);
                                if (file) {
                                        filp_close(file, files);
-                                       cond_resched_rcu_qs();
+                                       cond_resched();
                                }
                        }
                        i++;