Page MenuHomeFreeBSD

Add witness warning to callout_drain()
ClosedPublic

Authored by adrian on Jan 24 2015, 10:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 31 2023, 8:57 PM
Unknown Object (File)
Dec 24 2022, 8:30 AM
Unknown Object (File)
Dec 31 2016, 7:05 AM
Unknown Object (File)
Dec 18 2016, 4:30 PM
Unknown Object (File)
Nov 4 2016, 7:49 PM
Unknown Object (File)
Jul 16 2016, 8:38 AM
Unknown Object (File)
Jun 28 2016, 5:00 AM
Unknown Object (File)
Jun 15 2016, 1:25 PM

Details

Reviewers
jhb
hselasky
Summary

Right now there's no witness warning to the callout_drain() routine.
This tripped me whilst debugging the way ath(4) was using callouts.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

adrian retitled this revision from to Add witness warning to callout_drain().
adrian updated this object.
adrian edited the test plan for this revision. (Show Details)
adrian added a reviewer: jhb.

I think this is a good idea. D1438 also adds such an assert.
Note that "c->c_lock" can be NULL. Else no further comments.

witness_warn() is ok with lock being NULL - it's the only lock that's currently allowed to be held during sleep. So it's fine to be NULL.

jhb edited edge metadata.

You could probably drop the extra braces, but that is a minor nit.

This revision is now accepted and ready to land.Jan 25 2015, 8:21 PM

I don't think it was, but it should be. You can use adrian as the commit author.

lol! this is old!

want me to go and land this today?

Nah, this already landed a long long time ago.

9500dd9f0bbf