Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2008 19:07:49 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_firmware.c
Message-ID:  <200804091907.m39J7nQb087521@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
sam         2008-04-09 19:07:49 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_firmware.c 
  Log:
  Do image loading in a context known to have a root directory:
  o create a private task queue thread that sets up root and current
    directories (hooking mountroot event as needed); this is necessary
    because task queue threads are parented from proc0 and it does not
    have a reference to rootvnode (lost when / mounting moved to init)
  o bounce image load + unload requests through the private task q so
    we can load images even when the request is made from a thread that
    does not have sufficient context (e.g. task q thread)
  o add a check in the task q thread to fail requests before root is
    mounted (just in case)
  
  Reviewed by:    jhb, mlaier, luigi (glance)
  MFC after:      1 month
  
  Revision  Changes    Path
  1.10      +121 -23   src/sys/kern/subr_firmware.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804091907.m39J7nQb087521>