Page MenuHomeFreeBSD

new-bus: Use M_WAITOK in more places
ClosedPublic

Authored by jhb on Thu, Mar 6, 10:07 PM.
Tags
None
Referenced Files
F112578930: D49274.id151986.diff
Thu, Mar 20, 2:14 AM
F112526282: D49274.diff
Wed, Mar 19, 8:42 AM
Unknown Object (File)
Fri, Mar 14, 6:05 AM
Unknown Object (File)
Wed, Mar 12, 5:53 PM
Unknown Object (File)
Tue, Mar 11, 2:59 PM
Unknown Object (File)
Mon, Mar 10, 7:49 PM
Unknown Object (File)
Sun, Mar 9, 11:44 PM
Unknown Object (File)
Sun, Mar 9, 12:18 PM
Subscribers

Details

Summary

M_NOWAIT is now only used for devclass_get_devices,
devclass_get_drivers, and device_get_children. Other functions are
generally called from sleepable contexts such as module event
handlers, attach/detach routines, and the ioctl handler for
/dev/devctl2.

Suggested by: mjg (devclass_add_device)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This booted fine for me (no WITNESS warnings) in both a bhyve VM and my X1 Carbon.

sys/kern/subr_bus.c
2119

This didn't really handle failure

I think i chamged some of these in my tree. Now if i could jusr find that

This revision was not accepted when it landed; it landed in state Needs Review.Mon, Mar 10, 5:36 PM
This revision was automatically updated to reflect the committed changes.