Page MenuHomeFreeBSD

pbio: Add locking and remove D_NEEDGIANT.
ClosedPublic

Authored by jhb on Apr 27 2022, 3:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 25, 2:48 PM
Unknown Object (File)
Sun, Mar 22, 7:06 PM
Unknown Object (File)
Mon, Mar 9, 9:03 AM
Unknown Object (File)
Mon, Mar 9, 8:59 AM
Unknown Object (File)
Mon, Mar 9, 3:09 AM
Unknown Object (File)
Feb 8 2026, 11:19 AM
Unknown Object (File)
Feb 8 2026, 4:12 AM
Unknown Object (File)
Jan 31 2026, 1:26 PM
Subscribers
None

Details

Summary

Use a sx lock to permit uiomove directly into/out of the the per-port
buffers. In addition, the sx lock provides a stronger guarantee that
I think this driver wants which is to single-thread read and write
calls even while paused. Finally, replace tsleep with dummy wait
channels with calls to pause_sig to more clearly communicate the
intent.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45396
Build 42284: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Apr 27 2022, 3:41 PM
jhb created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 5 2022, 11:44 PM
This revision was automatically updated to reflect the committed changes.