]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r355410: Switch GEOM_DEV from make_dev_p() to make_dev_s().
authorAlexander Motin <mav@FreeBSD.org>
Thu, 19 Dec 2019 01:25:44 +0000 (01:25 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 19 Dec 2019 01:25:44 +0000 (01:25 +0000)
commitef4e1b30b276db07fbb8c25a4fad831b7d7aa84f
tree9e17f9197218e1d541546016f10fdb4928680452
parent4903e400cfb5ec52a8a020a3268db658c1ceda7c
MFC r355410: Switch GEOM_DEV from make_dev_p() to make_dev_s().

It closes the race condition and so allows to remove few NULL checks.

Also while there, use dev->si_drv1 in addition to cp->private to store
softc pointer.  For calls coming from the dev side it gives reliable cache
hit instead of often miss before.
sys/geom/geom_dev.c