]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
checkpatch: Deprecate srcu_read_lock_lite() and srcu_read_unlock_lite()
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 6 Mar 2025 16:10:00 +0000 (08:10 -0800)
committerJoel Fernandes <joelagnelf@nvidia.com>
Fri, 16 May 2025 15:12:54 +0000 (11:12 -0400)
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 <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
scripts/checkpatch.pl

index 3d22bf863eec9edf0c2fe7ad7a8986d7e8ad892a..b3b1939ccd19f0897bdeeb05d014a9bbb9540e52 100755 (executable)
@@ -839,6 +839,8 @@ our %deprecated_apis = (
        "kunmap"                                => "kunmap_local",
        "kmap_atomic"                           => "kmap_local_page",
        "kunmap_atomic"                         => "kunmap_local",
+       "srcu_read_lock_lite"                   => "srcu_read_lock_fast",
+       "srcu_read_unlock_lite"                 => "srcu_read_unlock_fast",
 );
 
 #Create a search pattern for all these strings to speed up a loop below