]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
srcu: Fix SRCU read flavor macro comments
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 27 Jan 2026 23:24:24 +0000 (15:24 -0800)
committerJoel Fernandes <joelagnelf@nvidia.com>
Mon, 30 Mar 2026 19:48:13 +0000 (15:48 -0400)
The SRCU_READ_FLAVOR_FAST and SRCU_READ_FLAVOR_FAST_UPDOWN comments
need repair.  The former fails to not that SRCU-fast can be used in NMI
handlers, and the latter says that it goes with srcu_read_lock_fast()
when it really goes with srcu_read_lock_fast_updown().  This commit
therefore fixes both comments.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
include/linux/srcu.h

index bb44a0bd769683d972f5f508671d1e17e3271573..81b1938512d5d100360fb610f6f64b13b191c50c 100644 (file)
@@ -69,8 +69,8 @@ int init_srcu_struct_fast_updown(struct srcu_struct *ssp);
 #define SRCU_READ_FLAVOR_NORMAL                0x1             // srcu_read_lock().
 #define SRCU_READ_FLAVOR_NMI           0x2             // srcu_read_lock_nmisafe().
 //                                     0x4             // SRCU-lite is no longer with us.
-#define SRCU_READ_FLAVOR_FAST          0x4             // srcu_read_lock_fast().
-#define SRCU_READ_FLAVOR_FAST_UPDOWN   0x8             // srcu_read_lock_fast().
+#define SRCU_READ_FLAVOR_FAST          0x4             // srcu_read_lock_fast(), also NMI-safe.
+#define SRCU_READ_FLAVOR_FAST_UPDOWN   0x8             // srcu_read_lock_fast_updown().
 #define SRCU_READ_FLAVOR_ALL           (SRCU_READ_FLAVOR_NORMAL | SRCU_READ_FLAVOR_NMI | \
                                         SRCU_READ_FLAVOR_FAST | SRCU_READ_FLAVOR_FAST_UPDOWN)
                                                // All of the above.