diff options
author | kib <kib@FreeBSD.org> | 2007-07-04 06:56:58 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2007-07-04 06:56:58 +0000 |
commit | bbfd17f7e8ab03daa669455f00b7384b82b2691a (patch) | |
tree | 27b69adf2610deadddf2c9ace920c1d76d1bedac /etc/etc.powerpc/ttys | |
parent | 4a90acd0851dafc13365ee00d3da1b04b9e4c5f2 (diff) | |
download | FreeBSD-src-bbfd17f7e8ab03daa669455f00b7384b82b2691a.zip FreeBSD-src-bbfd17f7e8ab03daa669455f00b7384b82b2691a.tar.gz |
Since cdev mutex is after system map mutex in global lock order, free()
shall not be called while holding cdev mutex. devfs_inos unrhdr has cdev as
mutex, thus creating this LOR situation.
Postpone calling free() in kern/subr_unit.c:alloc_unr() and nested functions
until the unrhdr mutex is dropped. Save the freed items on the ppfree list
instead, and provide the clean_unrhdrl() and clean_unrhdr() functions to
clean the list.
Call clean_unrhdrl() after devfs_create() calls immediately before
dropping cdev mutex. devfs_create() is the only user of the alloc_unrl()
in the tree.
Reviewed by: phk
Tested by: Peter Holm
LOR: 80
Approved by: re (kensmith)
Diffstat (limited to 'etc/etc.powerpc/ttys')
0 files changed, 0 insertions, 0 deletions