Page MenuHomeFreeBSD

snd_dummy: Fix callout(9) races
Needs ReviewPublic

Authored by christos on Tue, Nov 5, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 1:07 AM
Unknown Object (File)
Sat, Nov 16, 2:05 PM
Unknown Object (File)
Mon, Nov 11, 5:14 PM
Unknown Object (File)
Mon, Nov 11, 4:15 PM
Unknown Object (File)
Mon, Nov 11, 2:34 AM
Unknown Object (File)
Sun, Nov 10, 7:06 PM
Unknown Object (File)
Sat, Nov 9, 9:27 AM
Unknown Object (File)
Sat, Nov 9, 8:43 AM
Subscribers

Details

Summary

Use callout_init_mtx(9) to associate the callback with the driver's
lock. Also make sure the callout is stopped properly during detach.

While here, get rid of some unnecessary if statements in
dummy_chan_trigger().

Sponsored by: The FreeBSD Foundation
MFC after: 2 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60708
Build 57592: arc lint + arc unit