From owner-cvs-all@FreeBSD.ORG Mon May 26 07:40:16 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C5281065674; Mon, 26 May 2008 07:40:16 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E6AB88FC1C; Mon, 26 May 2008 07:40:15 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4Q7eFPA000281; Mon, 26 May 2008 07:40:15 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4Q7eEDb000280; Mon, 26 May 2008 07:40:14 GMT (envelope-from delphij) Message-Id: <200805260740.m4Q7eEDb000280@repoman.freebsd.org> From: Xin LI Date: Mon, 26 May 2008 07:40:14 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/iwn if_iwn.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2008 07:40:16 -0000 delphij 2008-05-26 07:40:14 UTC FreeBSD src repository Modified files: sys/dev/iwn if_iwn.c Log: We can not call iwn_start directly in the interrupt context, where the iwn mutex is being held, and iwn_start assumes that we do not have that mutex held. Resolve this issue with what we do for other NICs by splitting the iwn_start procedure into two parts, iwn_start() do the locking, and iwn_start_locked() assumes that the mutex is being held. This resolves panic when WITNESS is enabled. Revision Changes Path 1.6 +14 -3 src/sys/dev/iwn/if_iwn.c