Commit 7c2af0f
tty: tty_io: use console_list_lock for list synchronization
show_cons_active() uses the console_lock to gather information
on registered consoles. It requires that no consoles are unregistered
until it is finished. The console_list_lock should be used because
list synchronization responsibility will be removed from the
console_lock in a later change.
Note, the console_lock is still needed to serialize the device()
callback with other console operations.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-34-john.ogness@linutronix.de1 parent 6f88367 commit 7c2af0f
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3527 | 3527 | | |
3528 | 3528 | | |
3529 | 3529 | | |
3530 | | - | |
| 3530 | + | |
3531 | 3531 | | |
3532 | 3532 | | |
3533 | 3533 | | |
3534 | | - | |
3535 | | - | |
3536 | | - | |
3537 | | - | |
3538 | 3534 | | |
3539 | | - | |
| 3535 | + | |
| 3536 | + | |
3540 | 3537 | | |
3541 | 3538 | | |
3542 | 3539 | | |
| |||
3548 | 3545 | | |
3549 | 3546 | | |
3550 | 3547 | | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
3551 | 3555 | | |
3552 | 3556 | | |
3553 | 3557 | | |
| |||
3563 | 3567 | | |
3564 | 3568 | | |
3565 | 3569 | | |
| 3570 | + | |
| 3571 | + | |
3566 | 3572 | | |
3567 | 3573 | | |
3568 | 3574 | | |
| |||
0 commit comments