"README.md" did not exist on "d24e9aafe5d5dfdf6d114b29e67f8afd5fae5ef0"
[PATCH] vt: refactor console SAK processing
This does several things. - It moves looking up of the current foreground console into process context where we can safely take the semaphore that protects this operation. - It uses the new flavor of work queue processing. - This generates a factor of do_SAK, __do_SAK that runs immediately. - This calls __do_SAK with the console semaphore held ensuring nothing else happens to the console while we process the SAK operation. - With the console SAK processing moved into process context this patch removes the xchg operations that I used to attempt to attomically update struct pid, because of the strange locking used in the SAK processing. With SAK using the normal console semaphore nothing special is needed. Cc: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by:Eric W. Biederman <ebiederm@xmission.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/char/keyboard.c 3 additions, 9 deletionsdrivers/char/keyboard.c
- drivers/char/sysrq.c 3 additions, 3 deletionsdrivers/char/sysrq.c
- drivers/char/tty_io.c 9 additions, 4 deletionsdrivers/char/tty_io.c
- drivers/char/vt_ioctl.c 26 additions, 2 deletionsdrivers/char/vt_ioctl.c
- include/linux/console_struct.h 3 additions, 0 deletionsinclude/linux/console_struct.h
- include/linux/tty.h 1 addition, 0 deletionsinclude/linux/tty.h
Loading
Please register or sign in to comment