Date: Thu, 27 Dec 2007 09:17:38 -0800 (PST) From: Raja Sivaramakrishnan <srajag00@yahoo.com> To: Kostik Belousov <kostikbel@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: namei lookup vnode locking Message-ID: <153149.2801.qm@web90514.mail.mud.yahoo.com> In-Reply-To: <20071227131521.GO57756@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the response - I'll take a look at the handbook.
Regarding ttywait, it was not called through the ttydrain ioctl.
ttywait was called through fdfree from exit1() when the login
process was exiting. I believe this is called with the vnode
lock held.
- Raja
First, there were the significant locking fixes for the devfs after
6.1, in particular, check that 6.2, or, even better 6.3-latest RC
shows the errant behaviour. It may be all fixed already.
For proper reporting of the deadlock, see kernel debug chapter
of the developer handbook, in particular, deadlock section.
I have a doubt regarding you analysis as far as I was able to
understand it. ttydrain() ioctl does not hold the dev vnode lock
while calling the driver. Anyway, do what I recommended above.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?153149.2801.qm>
