netfilter: Eliminate cond_resched_rcu_qs() in favor of cond_resched()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 24 Oct 2017 13:48:39 +0000 (06:48 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 29 Nov 2017 00:00:27 +0000 (16:00 -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: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Florian Westphal <fw@strlen.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: <netfilter-devel@vger.kernel.org>
net/netfilter/nf_conntrack_core.c

index 85f643c1e227c5a70c3b3038baad981e88dca880..4efaa3066c785ef46b9e2debd4372c90a540bf43 100644 (file)
@@ -1044,7 +1044,7 @@ static void gc_worker(struct work_struct *work)
                 * we will just continue with next hash slot.
                 */
                rcu_read_unlock();
-               cond_resched_rcu_qs();
+               cond_resched();
        } while (++buckets < goal);
 
        if (gc_work->exiting)