usbkbm: implement usbkbm_rsrv() to get out of interrupt context
The usbkbm is streams driver and does push the (translated) key to stream with putnext() call. Since putnext() is commonly used method (it will reduce latency) to pass messages to next module in queue, this will end up with deep stack and in case of usbkbm, the whole chain is executing in interrupt context. In worst case this means we are drawing the console FB from interrupt context of usbkbm.
We would like to have interrupt routine done fast, so we should putq the message to our read queue and let STREAMS scheduler to handle the queue by calling usbkbm_rsrv().
Updated by Electric Monk about 3 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 100e26fc80bc137237733b254a52de636d52c80e Author: Toomas Soome <email@example.com> Date: 2019-04-26T16:14:19.000Z 10684 usbkbm: implement usbkbm_rsrv() to get out of interrupt context Reviewed by: Gergő Doma <firstname.lastname@example.org> Reviewed by: Randy Fishel <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>