Page MenuHomeFreeBSD

snd_dummy: Fix callout(9) races
Needs ReviewPublic

Authored by christos on Tue, Nov 5, 9:27 PM.

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 60412
Build 57296: arc lint + arc unit