HomeFreeBSD

shsec: Allocate data blocks only for BIO_READ/WRITE requests

Description

shsec: Allocate data blocks only for BIO_READ/WRITE requests

In particular, there is no need to allocate a data block when passing
BIO_FLUSH requests to child providers, and g_io_request() asserts that
bp->bio_data == NULL for such requests.

PR: 255131
Reported and tested by: nvass@gmx.com
Sponsored by: The FreeBSD Foundation

(cherry picked from commit a2dfffb98917a57bfacb155b9d7d423c3e8ff792)

Details

Provenance
markjAuthored on Jan 27 2022, 2:53 PM
Parents
rG7fbdc1e3d421: geom: Assert that BIO_SPEEDUP BIOs have bio_data set to NULL
Branches
Unknown
Tags
Unknown