rcu/sync: Kill rcu_sync_type/gp_type
authorOleg Nesterov <oleg@redhat.com>
Tue, 23 Apr 2019 12:07:24 +0000 (14:07 +0200)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 28 May 2019 16:05:23 +0000 (09:05 -0700)
commit95bf33b55ff4465399bad843f1d8d618c8baf1f3
tree9ddcd2a9ed6f70a50a4ff6d7bc0c767b6dc98ae0
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
rcu/sync: Kill rcu_sync_type/gp_type

Now that the RCU flavors have been consolidated, rcu_sync_type makes no
sense because none of internal update functions aside from .held() depend
on gp_type.  This commit therefore removes this field and consolidates
the relevant code.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
[ paulmck: Added RCU and RCU-bh checks to rcu_sync_is_idle(). ]
[ paulmck: And applied subsequent feedback from Oleg Nesterov. ]
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
include/linux/percpu-rwsem.h
include/linux/rcu_sync.h
kernel/locking/percpu-rwsem.c
kernel/rcu/sync.c