Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2013 09:02:06 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Gleb Smirnoff <glebius@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r257184 - in head/sys/dev: mii usb/net xl
Message-ID:  <CAJ-VmomjjrxEJYzJ_V=_fPpy-1N8xkcDWnSakJpoREoSYc9SDg@mail.gmail.com>
In-Reply-To: <20131027071909.GH52889@FreeBSD.org>
References:  <201310261840.r9QIeH89083767@svn.freebsd.org> <CAJ-VmonmXgQUOFDw=ZHYXVbsNS54vUwCXt8JiZ=mKENvG85F9Q@mail.gmail.com> <20131027071909.GH52889@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Cool.

Just make sure you check the odd ones like USB, where ejecting may
occur during or just before the callout runs, and the callout tries
accessing registers that aren't there.

Sure the previous was racy, but it may have been "not racy enough" to
cause most people to never see a panic.



-adrian


On 27 October 2013 00:19, Gleb Smirnoff <glebius@freebsd.org> wrote:
> On Sat, Oct 26, 2013 at 06:57:04PM -0700, Adrian Chadd wrote:
> A> hm, so none of the modified PHYs nor their consumers will get upset?
> A> Eg, if the NIC is down, is touching the PHY registers going to be a
> A> problem?
>
> The IFF_UP was always an administrative flag. I believe drivers initialize
> all their resources before being set an address with SIOCSIFADDR.
>
> If a driver doesn't, then the previous code still was racy.
>
> Anyway, I am going to handle any fallouts.
>
>
> --
> Totus tuus, Glebius.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomjjrxEJYzJ_V=_fPpy-1N8xkcDWnSakJpoREoSYc9SDg>