Date: Fri, 25 Apr 2008 17:43:13 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: Kostik Belousov <kostikbel@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: devctl (alike?) for devfs Message-ID: <4811EE01.7050207@icyb.net.ua> In-Reply-To: <20080425143646.GF18958@deviant.kiev.zoral.com.ua> References: <480E4269.2090604@icyb.net.ua> <480FBAB9.1000904@icyb.net.ua> <48103F36.6060707@icyb.net.ua> <200804240811.26183.jhb@freebsd.org> <4810FD1E.70602@icyb.net.ua> <20080425095009.GD18958@deviant.kiev.zoral.com.ua> <4811E6BC.4060306@icyb.net.ua> <20080425143646.GF18958@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
on 25/04/2008 17:36 Kostik Belousov said the following: > The malloc and free cannot be called while holding dev_mtx, this causes > the LORs. Please, look at the rev. 1.207, 1.210 of the kern/kern_conf.c > for the workarounds for the malloc issues. It seems that you may abuse the > dev_unlock_and_free() to make the notifications. > > Also, I think it is wrong to establish the lock ordering relations > between the process subsystem and cdev. Thank you for hand-guiding me! This seems to be a bit more complex than I originally thought, so I guess I'll have to get back to this after vacation (I want to stay as far from computers as possible during it). -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4811EE01.7050207>