From owner-freebsd-usb@FreeBSD.ORG Wed Oct 28 12:40:03 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85A981065696 for ; Wed, 28 Oct 2009 12:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 73DE68FC16 for ; Wed, 28 Oct 2009 12:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9SCe2hM093656 for ; Wed, 28 Oct 2009 12:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9SCe2Ls093655; Wed, 28 Oct 2009 12:40:02 GMT (envelope-from gnats) Date: Wed, 28 Oct 2009 12:40:02 GMT Message-Id: <200910281240.n9SCe2Ls093655@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Alban Hertroys Cc: Subject: Re: usb/139990: Kernel frequently panics after printing X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alban Hertroys List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2009 12:40:03 -0000 The following reply was made to PR usb/139990; it has been noted by GNATS. From: Alban Hertroys To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/139990: Kernel frequently panics after printing Date: Wed, 28 Oct 2009 13:14:02 +0100 An apparent fix was found with: >> Could you please try to change the callout_stop() call here : >> >> http://fxr.watson.org/fxr/source/dev/usb/ulpt.c?v=FREEBSD7#L605 >> >> By a callout_drain(), and see what happens ? >> Something like : >> >> if (sc->sc_has_callout) { >> - callout_stop(&sc->sc_read_callout); >> + callout_drain(&sc->sc_read_callout); >> sc->sc_has_callout = 0; >> } >> >> If this change does not help, I don't know... > > I printed several documents today without a kernel panic, so the > change appears to have worked. Thanks! Alban Hertroys -- Screwing up is the best way to attach something to the ceiling. !DSPAM:984,4ae8358b11079570670080!