Skip to content

Commit

Permalink
s390/sclp: Change SCLP console default buffer-full behavior
Browse files Browse the repository at this point in the history
Dropping kernel messages during a console-buffer-full condition
is preferable to halting the system until console messages are
delivered, especially for production systems.

Update default for sclp_console_drop kernel parameter accordingly.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@linux.vnet.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Peter Oberparleiter authored and Martin Schwidefsky committed Jul 22, 2015
1 parent 198a527 commit 00fd2cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/s390/char/sclp.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static DECLARE_COMPLETION(sclp_request_queue_flushed);
/* Number of console pages to allocate, used by sclp_con.c and sclp_vt220.c */
int sclp_console_pages = SCLP_CONSOLE_PAGES;
/* Flag to indicate if buffer pages are dropped on buffer full condition */
int sclp_console_drop = 0;
int sclp_console_drop = 1;
/* Number of times the console dropped buffer pages */
unsigned long sclp_console_full;

Expand All @@ -79,8 +79,8 @@ static int __init sclp_setup_console_drop(char *str)
int drop, rc;

rc = kstrtoint(str, 0, &drop);
if (!rc && drop)
sclp_console_drop = 1;
if (!rc)
sclp_console_drop = drop;
return 1;
}

Expand Down

0 comments on commit 00fd2cb

Please sign in to comment.