Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

proc: array: drop stale FIXME about RCU in task_sig()

task_sig() already wraps the SigQ rlimit read in an explicit RCU read-side
critical section. Drop the stale FIXME comment and keep using
task_ucounts() for the ucounts access.

No functional change.

Link: https://lkml.kernel.org/r/20260215124511.14227-1-jaime.saguillo@gmail.com
Signed-off-by: Jaime Saguillo Revilla <jaime.saguillo@gmail.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Jaime Saguillo Revilla and committed by
Andrew Morton
38d581ba 24f9515d

+1 -1
+1 -1
fs/proc/array.c
··· 280 280 blocked = p->blocked; 281 281 collect_sigign_sigcatch(p, &ignored, &caught); 282 282 num_threads = get_nr_threads(p); 283 - rcu_read_lock(); /* FIXME: is this correct? */ 283 + rcu_read_lock(); 284 284 qsize = get_rlimit_value(task_ucounts(p), UCOUNT_RLIMIT_SIGPENDING); 285 285 rcu_read_unlock(); 286 286 qlim = task_rlimit(p, RLIMIT_SIGPENDING);