Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   riastradh
Date:           Mon Nov 16 20:21:25 UTC 2026

Modified Files:
        src/sys/dev: fss.c

Log Message:
fss(4): Ensure newly attached autoconf unit matches dev_t minor.

Setting cf->cf_fstate = FSTATE_STAR means autoconf(9) may select any
unit from cf->cf_unit onward, rather than only cf->cf_unit.  Since
the attach is always serialized by fss_device_lock, this proably
doesn't make a difference in practice -- and we can't get rid of
fss_device_lock without a config_intern_pseudo_acquire or something
that atomically acquires the existing unit or if there is none
attaches a new one.  But let's make the intent clearer in case any of
that changes.

Prompted by:

PR kern/60986: fssconfig panics on bad backing store type


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/sys/dev/fss.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index