Page MenuHomeFreeBSD

new-bus: Use M_WAITOK in more places
Needs ReviewPublic

Authored by jhb on Thu, Mar 6, 10:07 PM.
Tags
None
Referenced Files
F111864093: D49274.id151986.diff
Sun, Mar 9, 12:18 PM
Unknown Object (File)
Sat, Mar 8, 1:52 PM
Unknown Object (File)
Sat, Mar 8, 2:12 AM
Unknown Object (File)
Fri, Mar 7, 8:55 PM
Unknown Object (File)
Fri, Mar 7, 8:11 AM
Unknown Object (File)
Fri, Mar 7, 7:38 AM
Unknown Object (File)
Fri, Mar 7, 2:05 AM
Unknown Object (File)
Thu, Mar 6, 10:39 PM
Subscribers

Details

Reviewers
imp
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 62810
Build 59694: arc lint + arc unit

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