HomeFreeBSD

Fix data race in scsi cd driver.

Description

Fix data race in scsi cd driver.

There is a data race between cdsysctlinit and cdcheckmedia. Both
functions change softc->flags without synchronization.

Submitted by: Arseny Smalyuk <smalukav@gmail.com>
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D31726

(cherry picked from commit e76786909ce0195855196305a04d86b40f138894)

Details

Provenance
mavAuthored on Sep 13 2021, 12:59 PM
Differential Revision
D31726: Fix data race in scsi cd driver
Parents
rG720177158ccd: opencrypto: Allow kern.crypto.allow_soft to be specified as a tunable
Branches
Unknown
Tags
Unknown