@@ -763,47 +763,6 @@ void __srcu_read_unlock(struct srcu_struct *ssp, int idx)
763
763
}
764
764
EXPORT_SYMBOL_GPL (__srcu_read_unlock );
765
765
766
- /*
767
- * Counts the new reader in the appropriate per-CPU element of the
768
- * srcu_struct. Returns an index that must be passed to the matching
769
- * srcu_read_unlock_lite().
770
- *
771
- * Note that this_cpu_inc() is an RCU read-side critical section either
772
- * because it disables interrupts, because it is a single instruction,
773
- * or because it is a read-modify-write atomic operation, depending on
774
- * the whims of the architecture.
775
- */
776
- int __srcu_read_lock_lite (struct srcu_struct * ssp )
777
- {
778
- int idx ;
779
-
780
- RCU_LOCKDEP_WARN (!rcu_is_watching (), "RCU must be watching srcu_read_lock_lite()." );
781
- idx = READ_ONCE (ssp -> srcu_idx ) & 0x1 ;
782
- this_cpu_inc (ssp -> sda -> srcu_lock_count [idx ].counter ); /* Y */
783
- barrier (); /* Avoid leaking the critical section. */
784
- return idx ;
785
- }
786
- EXPORT_SYMBOL_GPL (__srcu_read_lock_lite );
787
-
788
- /*
789
- * Removes the count for the old reader from the appropriate
790
- * per-CPU element of the srcu_struct. Note that this may well be a
791
- * different CPU than that which was incremented by the corresponding
792
- * srcu_read_lock_lite(), but it must be within the same task.
793
- *
794
- * Note that this_cpu_inc() is an RCU read-side critical section either
795
- * because it disables interrupts, because it is a single instruction,
796
- * or because it is a read-modify-write atomic operation, depending on
797
- * the whims of the architecture.
798
- */
799
- void __srcu_read_unlock_lite (struct srcu_struct * ssp , int idx )
800
- {
801
- barrier (); /* Avoid leaking the critical section. */
802
- this_cpu_inc (ssp -> sda -> srcu_unlock_count [idx ].counter ); /* Z */
803
- RCU_LOCKDEP_WARN (!rcu_is_watching (), "RCU must be watching srcu_read_unlock_lite()." );
804
- }
805
- EXPORT_SYMBOL_GPL (__srcu_read_unlock_lite );
806
-
807
766
#ifdef CONFIG_NEED_SRCU_NMI_SAFE
808
767
809
768
/*
0 commit comments