Re: + s390-tty-prepare-for-put_char-to-return-success-fail.patch added to -mm tree

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: <alan@...>, <alan@...>, <borntraeger@...>, <peter.oberparleiter@...>, <schwidefsky@...>, Andrew Morton <akpm@...>
Date: Tuesday, April 15, 2008 - 3:21 am

>   * NOTE: include/linux/tty_driver.h specifies that a character should be

Uh, oh... the comment above used to mean "block if in schedulable context or
busy wait otherwise". Figuring out which context we were in was done via
in_atomic(), which was broken on !SMP anyway, so that had to go.
So the last parameter for __sclp_vt220_write is now an indicator if scheduling
is allowed or not (1 means yes). Somebody told me that the put_char routine
will only be called from schedulable context, which now doesn't seem to be
true?!
For the console functions we pass indeed 0 to __sclp_vt220_write since printk
may be called within any context. Is that also true for the tty put_char
routine?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: + s390-tty-prepare-for-put_char-to-return-success-fail.p..., Heiko Carstens, (Tue Apr 15, 3:21 am)