cvs commit: src/sys/fs/devfs devfs.h devfs_devs.c devfs_rule.c

Poul-Henning Kamp phk at FreeBSD.org
Wed Sep 14 23:57:28 PDT 2005


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


More information about the cvs-src mailing list