[Bug 252165] usb network and mii bus media status race condition

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 02 Nov 2022 08:14:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252165

--- Comment #30 from Ali Abdallah <ali.abdallah@suse.com> ---
(In reply to Hans Petter Selasky from comment #26)
> Maybe all MII bus code should be executed for the same thread?

Not sure what do you mean.

The issue is that the ioctl for media status (which invokes the mii bus) races
with a currently running tick (ure_tick for example).

So the MII bus code runs in a single thread always, but one invoked by ioctl
and another one by the tick callback race between each other sometimes (and it
is not clear why, as both code paths use the same lock...)

-- 
You are receiving this mail because:
You are the assignee for the bug.