From owner-freebsd-threads@FreeBSD.ORG Mon Aug 15 11:07:13 2011 Return-Path: Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46AF41065676 for ; Mon, 15 Aug 2011 11:07:13 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1B8FC8FC08 for ; Mon, 15 Aug 2011 11:07:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7FB7CNd014884 for ; Mon, 15 Aug 2011 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7FB7C0M014882 for freebsd-threads@FreeBSD.org; Mon, 15 Aug 2011 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Aug 2011 11:07:12 GMT Message-Id: <201108151107.p7FB7C0M014882@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-threads@FreeBSD.org X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 11:07:13 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o threa/157040 threads [libthr] valgrind detects leaks in libthr.so.3 o threa/154893 threads pthread_sigmask don't work if mask and oldmask are pas o threa/150959 threads [libc] Stub pthread_once in libc should call _libc_onc o threa/149366 threads pthread_cleanup_pop never runs the configured routine o threa/148515 threads Memory / syslog strangeness in FreeBSD 8.x ( possible o threa/141721 threads rtprio(1): (id|rt)prio priority resets when new thread o threa/136345 threads Recursive read rwlocks in thread A cause deadlock with o threa/135673 threads databases/mysql50-server - MySQL query lock-ups on 7.2 o threa/128922 threads threads hang with xorg running o threa/127225 threads bug in lib/libthr/thread/thr_init.c o threa/122923 threads 'nice' does not prevent background process from steali o threa/121336 threads lang/neko threading ok on UP, broken on SMP (FreeBSD 7 o threa/116668 threads can no longer use jdk15 with libthr on -stable SMP o threa/115211 threads pthread_atfork misbehaves in initial thread o threa/110636 threads [request] gdb(1): using gdb with multi thread applicat o threa/110306 threads apache 2.0 segmentation violation when calling gethost o threa/103975 threads Implicit loading/unloading of libpthread.so may crash o threa/101323 threads [patch] fork(2) in threaded programs broken. s threa/84483 threads problems with devel/nspr and -lc_r on 4.x o threa/80992 threads abort() sometimes not caught by gdb depending on threa o threa/79683 threads svctcp_create() fails if multiple threads call at the s threa/76694 threads fork cause hang in dup()/close() function in child (-l s threa/48856 threads Setting SIGCHLD to SIG_IGN still leaves zombies under s threa/34536 threads accept() blocks other threads s threa/30464 threads [patch] pthread mutex attributes -- pshared 25 problems total. From owner-freebsd-threads@FreeBSD.ORG Mon Aug 15 17:30:13 2011 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB1CB106567B; Mon, 15 Aug 2011 17:30:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 25B478FC1F; Mon, 15 Aug 2011 17:30:10 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id AFE6146B32; Mon, 15 Aug 2011 13:30:09 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 502AE8A02E; Mon, 15 Aug 2011 13:30:09 -0400 (EDT) From: John Baldwin To: freebsd-threads@freebsd.org Date: Mon, 15 Aug 2011 13:10:49 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <4E44E326.9070405@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201108151310.49272.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 15 Aug 2011 13:30:09 -0400 (EDT) Cc: Subject: Re: Urgent interrupt thread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 17:30:14 -0000 On Friday, August 12, 2011 4:59:18 am Ninad Adi wrote: > Thanks for your prompt replies sir, > just one more clarification > > the routine bus_setup_intr has 5th arg of > type driver_intr_t ithread then if I am not > wrong my isr is running as a thread, probably > thats the reason why latest drivers dont use > Deferring mechanism like iwi, iwn, ral. However > Atheros is still using taskqueues which is considerably old I suppose. > So using filter+ithread model without deferring > Should be fine. > Plz let me know your opinions on the same, > It would help me understand freebsd better. > Will not disturb you more. > Awaiting,reply You should just use the 'driver_intr_t' method which will be a function that runs in an ithread. It cannot sleep in that it cannot call functions like tsleep() or cv_wait() or use "sleepable" locks like sx(9) locks. It can, however, use other locks such as mutexes and rwlocks. It can also wakeup other sleeping threads using cv_signal/broadcast, wakeup(), etc. In general you probably don't need to use a filter routine. -- John Baldwin From owner-freebsd-threads@FreeBSD.ORG Tue Aug 16 07:03:31 2011 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E837106566C for ; Tue, 16 Aug 2011 07:03:31 +0000 (UTC) (envelope-from adi.ninad@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id CC2C38FC08 for ; Tue, 16 Aug 2011 07:03:30 +0000 (UTC) Received: by iye7 with SMTP id 7so16124838iye.17 for ; Tue, 16 Aug 2011 00:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tqGIXek0brpwl3WJsoJ+54hIgeXzlTfX2iO2oRjImTw=; b=KDB4t3i22fvF+42JPLCzkByKlrdcB9uqIeKJF5fS+z9GqsffeFz8dnp18fGlp8tjmk lAuNI18Gfhsy+kEPAEu7L3pEaX+c2EmzNQmkIUj84ZhpuN7We35cAoNqWzCumrjqe3Md U67NYsJWRoG+Su+fcUQ7ShWd80k1aLCCpxYjo= MIME-Version: 1.0 Received: by 10.231.74.13 with SMTP id s13mr9584291ibj.78.1313478210009; Tue, 16 Aug 2011 00:03:30 -0700 (PDT) Received: by 10.231.63.198 with HTTP; Tue, 16 Aug 2011 00:03:29 -0700 (PDT) In-Reply-To: <201108151310.49272.jhb@freebsd.org> References: <4E44E326.9070405@freebsd.org> <201108151310.49272.jhb@freebsd.org> Date: Tue, 16 Aug 2011 12:33:29 +0530 Message-ID: From: Ninad Adi To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-threads@freebsd.org" Subject: Re: Urgent interrupt thread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 07:03:31 -0000 Thanks a lot john for considering my mail. Well the things are clear now. Ninad Adi On Monday, August 15, 2011, John Baldwin wrote: > On Friday, August 12, 2011 4:59:18 am Ninad Adi wrote: >> Thanks for your prompt replies sir, >> just one more clarification >> >> the routine bus_setup_intr has 5th arg of >> type driver_intr_t ithread then if I am not >> wrong my isr is running as a thread, probably >> thats the reason why latest drivers dont use >> Deferring mechanism like iwi, iwn, ral. However >> Atheros is still using taskqueues which is considerably old I suppose. >> So using filter+ithread model without deferring >> Should be fine. >> Plz let me know your opinions on the same, >> It would help me understand freebsd better. >> Will not disturb you more. >> Awaiting,reply > > You should just use the 'driver_intr_t' method which will be a function that > runs in an ithread. It cannot sleep in that it cannot call functions like > tsleep() or cv_wait() or use "sleepable" locks like sx(9) locks. It can, > however, use other locks such as mutexes and rwlocks. It can also wakeup > other sleeping threads using cv_signal/broadcast, wakeup(), etc. In general > you probably don't need to use a filter routine. > > -- > John Baldwin >