]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid race with "dev_rel()" when using the recently added
authorhselasky <hselasky@FreeBSD.org>
Wed, 14 Jan 2015 22:07:13 +0000 (22:07 +0000)
committerhselasky <hselasky@FreeBSD.org>
Wed, 14 Jan 2015 22:07:13 +0000 (22:07 +0000)
commitb04cbf0c36a250a198bd3590209a1950e382664f
tree77fbb7d5d403fb7634749cf5b96fa3188c3de18b
parentebab1754a3d2609947e5d0562d678979a6040614
Avoid race with "dev_rel()" when using the recently added
"delist_dev()" function. Make sure the character device structure
doesn't go away until the end of the "destroy_dev()" function due to
concurrently running cleanup code inside "devfs_populate()".

MFC after: 1 week
Reported by: dchagin@
sys/fs/devfs/devfs_devs.c
sys/kern/kern_conf.c