Commit 8cb15f7
printk: console_device: use srcu console list iterator
Use srcu console list iteration for console list traversal. It is
acceptable because the consoles might come and go at any time.
Strict synchronizing with console registration code would not bring
any advantage over srcu.
Document why the console_lock is still necessary. Note that this
is a preparatory change for when console_lock no longer provides
synchronization for the console list.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-21-john.ogness@linutronix.de1 parent 87f2e4b commit 8cb15f7
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3077 | 3077 | | |
3078 | 3078 | | |
3079 | 3079 | | |
| 3080 | + | |
3080 | 3081 | | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
3081 | 3087 | | |
3082 | | - | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
3083 | 3091 | | |
3084 | 3092 | | |
3085 | 3093 | | |
3086 | 3094 | | |
3087 | 3095 | | |
3088 | 3096 | | |
| 3097 | + | |
| 3098 | + | |
3089 | 3099 | | |
3090 | 3100 | | |
3091 | 3101 | | |
| |||
0 commit comments