Page MenuHomeFreeBSD

Export sbuf_drain to orchestrate lock and drain action
ClosedPublic

Authored by rscheff on Mon, Mar 29, 9:47 AM.

Details

Summary

While exporting large amounts of data to a sysctl
request, datastructures may need to be locked.

Exporting the sbuf_drain function allows the
coordination between drain events and held
locks, to avoid stalls.

Test Plan

PR: 254333
MFC after: 2 weeks

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.