Skip to content

Commit b9af71a

Browse files
paulmckrcuJoel Fernandes
authored andcommitted
checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()
Uses of srcu_read_lock_lite() and srcu_read_unlock_lite() are better served by the new srcu_read_lock_fast() and srcu_read_unlock_fast() APIs. As in srcu_read_lock_lite() and srcu_read_unlock_lite() would never have happened had I thought a bit harder a few months ago. Therefore, mark them deprecated. Signed-off-by: Paul E. McKenney <[email protected]> Signed-off-by: Joel Fernandes <[email protected]>
1 parent ed0d0db commit b9af71a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/checkpatch.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,8 @@ sub find_standard_signature {
839839
"kunmap" => "kunmap_local",
840840
"kmap_atomic" => "kmap_local_page",
841841
"kunmap_atomic" => "kunmap_local",
842+
"srcu_read_lock_lite" => "srcu_read_lock_fast",
843+
"srcu_read_unlock_lite" => "srcu_read_unlock_fast",
842844
);
843845

844846
#Create a search pattern for all these strings to speed up a loop below

0 commit comments

Comments
 (0)