Page MenuHomeFreeBSD

pbio: Add locking and remove D_NEEDGIANT.
ClosedPublic

Authored by jhb on Apr 27 2022, 3:41 PM.
Tags
None
Referenced Files
F166727806: D35081.id105729.diff
Sat, Aug 15, 9:38 PM
F166719488: D35081.id105470.diff
Sat, Aug 15, 8:51 PM
Unknown Object (File)
Fri, Aug 14, 9:50 PM
Unknown Object (File)
Fri, Aug 14, 6:37 PM
Unknown Object (File)
Thu, Aug 13, 4:48 PM
Unknown Object (File)
Tue, Aug 11, 4:29 PM
Unknown Object (File)
Mon, Aug 10, 10:37 AM
Unknown Object (File)
Mon, Aug 10, 10:10 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.