HomeFreeBSD

pbio: Add locking and remove D_NEEDGIANT.

Description

pbio: Add locking and remove D_NEEDGIANT.

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.

Differential Revision: https://reviews.freebsd.org/D35081

(cherry picked from commit 51f481235c29fb38b92fb08a830385e39df80093)

Details

Provenance
jhbAuthored on May 5 2022, 11:40 PM
Differential Revision
D35081: pbio: Add locking and remove D_NEEDGIANT.
Parents
rGbde0080b3dec: pbio: Return BUS_PROBE_DEFAULT from probe instead of 0.
Branches
Unknown
Tags
Unknown