Source-Changes archive

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

CVS commit: src/sys/dev/dkwedge




To: source-changes%NetBSD.org@localhost

Subject: CVS commit: src/sys/dev/dkwedge

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>

Date: Fri, 21 Apr 2023 18:09:38 +0000


Module Name:    src
Committed By:   riastradh
Date:           Fri Apr 21 18:09:38 UTC 2023

Modified Files:
        src/sys/dev/dkwedge: dk.c

Log Message:
dk(4): Restore assertions in dklastclose.

We only enter dklastclose if the wedge is open (sc->sc_dk.dk_openmask
!= 0), which can happen only if dkfirstopen has succeeded, in which
case we hold a dk_rawopens reference to the parent that prevents
anyone else from closing it.  Hence sc->sc_parent->dk_rawopens > 0.

On open, sc->sc_parent->dk_rawvp is set to nonnull, and it is only
reset to null on close.  Hence if the parent is still open, as it
must be here, sc->sc_parent->dk_rawvp must be nonnull.


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

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






Prev by Date: CVS commit: src/external/mit/lua/dist/src

Next by Date: CVS commit: src/sys/dev/dkwedge

Previous by Thread: CVS commit: src/external/mit/lua/dist/src

Next by Thread: CVS commit: src/sys/dev/dkwedge

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index