HomeFreeBSD

vt(4): Make sure vt_switch_timer() has a sleepable context.

Description

vt(4): Make sure vt_switch_timer() has a sleepable context.

Fixes the following panic backtrace:

panic()
usbhid_sync_xfer()
usbhid_set_report()
hid_set_report()
hidbus_write()
hid_write()
hkbd_set_leds()
hkbd_ioctl_locked()
hkbd_ioctl_locked()
hkbd_ioctl()
kbdmux_ioctl()
vt_window_switch()
vt_switch_timer()

Differential Revision: https://reviews.freebsd.org/D36715
Sponsored by: NVIDIA Networking

(cherry picked from commit 2cce9aa0785c438fa8b66bd230824f7460df14ac)

Details

Provenance
hselaskyAuthored on Sep 26 2022, 3:10 PM
Differential Revision
D36715: vt(4): Make sure vt_switch_timer() has a sleepable context
Parents
rGaa4d15bb8e7a: nfsclient: access v_mount only after the vnode is locked
Branches
Unknown
Tags
Unknown