Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jun 2004 16:28:23 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_taskqueue.c
Message-ID:  <200406281628.i5SGSNRg055082@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2004-06-28 16:28:23 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_taskqueue.c 
  Log:
  - Execute all of the tasks on the taskqueue during taskqueue_free() after
    the queue has been removed from the global taskqueue_queues list.  This
    removes the need for the draining queue hack.
  - Allow taskqueue_run() to be called with the taskqueue mutex held.  It
    can still be called without the lock for API compatiblity.  In that case
    it will acquire the lock internally.
  - Don't lock the individual queue mutex in taskqueue_find() until after the
    strcmp as the global queues mutex is sufficient for the strcmp.
  - Simplify taskqueue_thread_loop() now that it can hold the lock across
    taskqueue_run().
  
  Submitted by:   bde (mostly)
  
  Revision  Changes    Path
  1.23      +24 -39    src/sys/kern/subr_taskqueue.c



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