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)
Nov 8 2024, 3:24 AM
Unknown Object (File)
Oct 3 2024, 12:49 AM
Unknown Object (File)
Sep 29 2024, 4:35 AM
Unknown Object (File)
Sep 29 2024, 4:35 AM
Unknown Object (File)
Sep 29 2024, 4:24 AM
Unknown Object (File)
Sep 25 2024, 5:32 PM
Unknown Object (File)
Sep 25 2024, 12:17 AM
Unknown Object (File)
Sep 24 2024, 6:55 AM

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