Date: Thu, 15 Sep 2005 06:57:28 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/devfs devfs.h devfs_devs.c devfs_rule.c Message-ID: <200509150657.j8F6vSir038373@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2005-09-15 06:57:28 UTC FreeBSD src repository Modified files: sys/fs/devfs devfs.h devfs_devs.c devfs_rule.c Log: Close a race which could result in unwarranted "ruleset %d already running" panics. Previously, recursion through the "include" feature was prevented by marking each ruleset as "running" when applied. This doesn't work for the case where two DEVFS instances try to apply the same ruleset at the same time. Instead introduce the sysctl vfs.devfs.rule_depth (default == 1) which limits how many levels of "include" we will traverse. Be aware that traversal of "include" is recursive and kernel stack size is limited. MFC: after 3 days Revision Changes Path 1.24 +2 -0 src/sys/fs/devfs/devfs.h 1.41 +4 -0 src/sys/fs/devfs/devfs_devs.c 1.16 +28 -44 src/sys/fs/devfs/devfs_rule.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509150657.j8F6vSir038373>