Date: Fri, 2 Jun 2006 16:29:06 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 98350 for review Message-ID: <200606021629.k52GT6GQ001505@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=98350 Change 98350 by jhb@jhb_mutex on 2006/06/02 16:28:19 Move the taskqueue_enqueue() into clearentry(). Affected files ... .. //depot/projects/smpng/sys/kern/subr_firmware.c#6 edit Differences ... ==== //depot/projects/smpng/sys/kern/subr_firmware.c#6 (text+ko) ==== @@ -107,6 +107,7 @@ KASSERT(fp->refcnt == 0, ("image %s refcnt %u", fp->name, fp->refcnt)); if (keep_file && (fp->file != NULL)) fp->name = name_unload; + taskqueue_enqueue(taskqueue_thread, &firmware_task); else { fp->name = NULL; fp->file = NULL; @@ -240,8 +241,6 @@ fp->refcnt--; if (fp->refcnt == 0 && (flags & FIRMWARE_UNLOAD)) clearentry(fp, 1); - if (fp->file) - taskqueue_enqueue(taskqueue_thread, &firmware_task); mtx_unlock(&firmware_mtx); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606021629.k52GT6GQ001505>