NetBSD/sys/dev/mscp
mrg 9eaecdf176 mscp(4): add ability for rronline() callback in a workqueue
when an ra(4) disk comes online the hardware interrupt ends up calling
disk_set_info(), which triggers a sleep lock/alloc in this path which
is triggered by LOCKDEBUG.

piggy-back on the existing workqueue for autoconfiguration to handle
this path and run the online completion in the work queue.

this is a little ugly, in that it puts two different types of work
into the one queue, but seems less ugly than creating a second
workqueue for what is likely another one-time event (infact, the other
user may be better handled via config_defer() -- i did not look too
closely.)

with this, LOCKDEBUG kernels work.

tested in simh.
2024-01-11 06:19:49 +00:00
..
files.mscp
mscp.c mscp(4): add ability for rronline() callback in a workqueue 2024-01-11 06:19:49 +00:00
mscp.h
mscp_disk.c mscp(4): add ability for rronline() callback in a workqueue 2024-01-11 06:19:49 +00:00
mscp_subr.c fix various typos in comments. 2022-04-07 19:33:37 +00:00
mscp_tape.c mscp(4): add ability for rronline() callback in a workqueue 2024-01-11 06:19:49 +00:00
mscpreg.h
mscpvar.h mscp(4): add ability for rronline() callback in a workqueue 2024-01-11 06:19:49 +00:00