Page MenuHomeFreeBSD

Make cam_periph_runccb be safe to call when we can only do polling.
ClosedPublic

Authored by imp on Dec 6 2017, 1:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 1:19 PM
Unknown Object (File)
Oct 5 2024, 7:33 AM
Unknown Object (File)
Oct 4 2024, 7:51 AM
Unknown Object (File)
Oct 2 2024, 12:14 AM
Unknown Object (File)
Oct 1 2024, 9:16 PM
Unknown Object (File)
Sep 30 2024, 11:09 AM
Unknown Object (File)
Sep 29 2024, 11:53 PM
Unknown Object (File)
Sep 29 2024, 7:41 AM
Subscribers
None

Details

Summary

Make cam_periph_runccb() safe for calling when we have to poll. Update
to reflect that cam_periph_runccb() can be called from situations
where the kernel scheduler is stopped, replace the by hand calling of
xpt_polled_action() with it.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/cam/cam_periph.c
1212 ↗(On Diff #36277)

Maybe name it pollwait for consistency with ccbwait. To me poll alone implies checking once, rather than the timeout sleep-wait-retry loop xpt_poll implements.

sys/cam/cam_xpt.c
3249–3250 ↗(On Diff #36277)

inconsistent whitespace here

3252 ↗(On Diff #36277)

What's the point of passing a timeout argument if it is immediately overwritten?

3256 ↗(On Diff #36277)

style(9) nit: whitespace

3263 ↗(On Diff #36277)

extra whitespace here

3284 ↗(On Diff #36277)

inconsistent whitespace

imp marked 6 inline comments as done.Dec 6 2017, 4:38 PM
imp added inline comments.
sys/cam/cam_xpt.c
3249–3250 ↗(On Diff #36277)

the whitespace is now consistent, but phab is having fits with tabs.

3284 ↗(On Diff #36277)

It's now consistent, but again, phab is having rendering issues.

This revision is now accepted and ready to land.Dec 6 2017, 5:31 PM
This revision was automatically updated to reflect the committed changes.
imp marked 2 inline comments as done.