HomeFreeBSD

FFS: assign fully initialized struct mount_softdeps to um_softdep

Description

FFS: assign fully initialized struct mount_softdeps to um_softdep

Other threads observing the non-NULL um_softdep can assume that it is
safe to use it. This is important for ro->rw remounts where change from
read-only to read-write status cannot be made atomic.

Reviewed by: mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D29178

Details

Provenance
kibAuthored on Mar 3 2021, 10:02 PM
Reviewer
mckusick
Differential Revision
D29178: UFS SU: handle races on remounts rw<->ro
Parents
rG2af934cc15bd: Assert that um_softdep is NULL on free(ump), i.e. softdep_unmount() was called
Branches
Unknown
Tags
Unknown