Commit eb7f1ed
printk: __pr_flush: use srcu console list iterator
Use srcu console list iteration for console list traversal.
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-17-john.ogness@linutronix.de1 parent fc956ae commit eb7f1ed
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3561 | 3561 | | |
3562 | 3562 | | |
3563 | 3563 | | |
| 3564 | + | |
3564 | 3565 | | |
3565 | 3566 | | |
3566 | 3567 | | |
| |||
3571 | 3572 | | |
3572 | 3573 | | |
3573 | 3574 | | |
| 3575 | + | |
| 3576 | + | |
| 3577 | + | |
| 3578 | + | |
| 3579 | + | |
3574 | 3580 | | |
3575 | 3581 | | |
3576 | | - | |
| 3582 | + | |
| 3583 | + | |
3577 | 3584 | | |
3578 | 3585 | | |
3579 | 3586 | | |
| |||
3582 | 3589 | | |
3583 | 3590 | | |
3584 | 3591 | | |
| 3592 | + | |
3585 | 3593 | | |
3586 | 3594 | | |
3587 | 3595 | | |
| |||
0 commit comments