vn_start_write(9) recursion ?

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Apr 28 14:03:40 UTC 2006


On Fri, Apr 28, 2006 at 03:08:55PM +0300, Kostik Belousov wrote:
+> vn_start_write(9) shall not be called recursively (at least, not without
+> V_NOWAIT flag). Otherwise, system may deadlock if vn_write_suspend(9)
+> is called between.

Yes, you are right. Nice catch, actually.

I hacked this patch to detect it:

	http://people.freebsd.org/~pjd/patches/vn_start_write_recursion.patch

And it panics on boot.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20060428/b1d78e4d/attachment.pgp


More information about the freebsd-fs mailing list